2
$\begingroup$

The title may be a bit confusing but the problem is this;

Lets assume I have 5 points in 4 groups (in total 20 points). What I want to achieve is;

-> Pick one point from each group (we will have 4 points at the end)

  • whose pairwise distance is larger than a threshold and
  • sum of pairwise distances is maximized.

For realization of parameters; group size is number of people in a scene, and points in a group is possible locations of each person. Point size can be increased to tens or hundreds for better estimation depending on computing resources but people count possible will not be larger than 20 or 30.

I hope, I could explained the question clear enough. If not, I will try to clarify better.

Thanks

$\endgroup$
  • $\begingroup$ There are only $5^4 = 625$ possible choices. Just try all of them. $\endgroup$ – Yuval Filmus Nov 14 '18 at 22:18
  • $\begingroup$ @Yuval Filmus A generalized answer will be better. Group and point size can vary, so it may become inefficient to check all possible choices. $\endgroup$ – UnfoX Nov 14 '18 at 22:20
  • 1
    $\begingroup$ The answer could depend on the magnitude of your parameters. Do you expect both the number of groups and their size to grow to infinity? If so, do you expect them to be of comparable magnitude? $\endgroup$ – Yuval Filmus Nov 14 '18 at 22:21
  • $\begingroup$ No, they will not grow to infinity. For realization of parameters; group size is number of people in a scene, and points in a group is possible locations of each person. Point size can be increased to tens or hundreds for better estimation depending on computing resources but people count possible will not be larger than 20 or 30. $\endgroup$ – UnfoX Nov 14 '18 at 22:25
  • $\begingroup$ You should update your question with all this information. $\endgroup$ – Yuval Filmus Nov 14 '18 at 22:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.