Given n points, each with one of two assigned classes, I am looking for an efficient method to select two subsets, one per class, with k < n points. In the simplest terms, the selection should follow the criteria:
- The distance between points within a selected subset should be minimal.
- The distance between points from different subsets should be maximal.
I have found several methods to select a minimum or maximum distance, but not both for subsets with class constraints. I assume this is a known optimization problem, but I lack the terms to search for it. This solution should also be scalable to higher dimensions. It is okay if the solution is not optimal but a good approximation.
I am looking forward to any help!