2d point clustering

后端 未结 5 1705
醉话见心
醉话见心 2021-02-05 08:45

Given: Given a set of N points in the 2D plane (x and y coordinates), and a set of N radii corresponding to each point. We will refer to a point\'s disc as the

5条回答
  •  南方客
    南方客 (楼主)
    2021-02-05 09:11

    It sounds like the obvious O(n^2) algorithm would be to create a graph with the points as vertices, and then connect two points if the conditions you give are met. And then you read off the connected components of the graph, discarding singletons. Also, the condition you gave for clustering sounds symmetric to me. Am I missing something?

提交回复
热议问题