• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[General] How to Group Clusters into Subclusters

Status
Not open for further replies.
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: 811
Status
Not open for further replies.
Top