There is a set of n points on the plane. It is necessary to find k such points, the distance between which is greatest. For k = 2, everything is simple; for k> 2, the simple search takes too long.
Maybe there are some algorithms or even something implemented? I am writing in python.