I have N
dots. I know all pairwise distances for them. I need to select K
dots from them, such that average pairwise distance will be maximal.
I have only dummy idea to iterate trough each dot.
Do you have more smart idea how to obtain such a subset?
It will be nice to solve this problem generally, without any assumptions, but if it will helps: N
is around 10^3-10^4, K
around 10^2.
My dummy idea: I start from dot #1 search for the most distant dot, so i have a chunk of 2 dot, next i search for the third dot, which has the biggest average distance to these 2 dots, and so on until i will collect K dots. This procedure should be repeated for all N dots as starting value. Finally I will obtain N arrays of K dots. From them I may choose one with biggest average distance.