M
M
mystdeim2014-06-22 16:45:03
Algorithms
mystdeim, 2014-06-22 16:45:03

What is the best way to group objects on a plane?

The task is to group objects on a plane.
For example: from this:
ce75cb0eaa8a407e9e51283f8f7eb4aa.png
You need to get something similar to this:
f02d6f48f1d64e36a14c580388578839.png
While the idea came to mind - break it into hexagons and go through all the points by enumeration. But there are cases when objects with different densities fill the entire plane, and if I simply divide into equal intervals, I will get a grid with bold dots located at the same distance from each other, looks so-so. What are the grouping algorithms?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2014-06-22
@mystdeim

I understand that you need a clustering algorithm , provided that you do not know the number of classters.
There is also an option to implement auto-detection of the number of clusters for k-means. We set three random classter centers, carry out classterization (in this case, the centers of the classters are shifted), then we either leave everything as it is, or divide these three classters by two more. These two centers will either shift and form their own classters, or converge to one point. In this way, it is quite easy to perform classifierization without knowing the exact number of classters.
True, there are more efficient algorithms for this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question