• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[General] How to Group Clusters into Subclusters

Status
Not open for further replies.
Level 31
Joined
Jul 10, 2007
Messages
6,306
Let's say that we have a group of points in 2D space. The group should be split up into clusters of 4 as efficiently as possible (maximize cluster sizes). A point can only be part of a cluster if the cluster size after the dot is added is less than or equal to the max cluster size (circle at top right).

Any ideas?

I was thinking of calculating center points for sets of data and then splitting it up using binary partitioning on the center points until set <= 4, but that wouldn't split it up into maximum cluster sizes. It'd split it up into even cluster sizes.

So... dunno what to do : (.

Below is a picture of me connecting dots for sets of 4 points to represent clusters. I need an algorithm to do that in code.

attachment.php
 

Attachments

  • cluster.jpg
    cluster.jpg
    16.7 KB · Views: 800
Status
Not open for further replies.
Top