Questions tagged [closest-points]

107 questions
-3
votes
2 answers

How to find 3 closest coordinates from a point in an array Java

I have a homework assignment that and I am completely stuck (level: beginner). I have to create a method that finds 3 closest distances from an user entry and all the points in an array - and I am stuck here. The method is: public static int[]…
Frenchie
  • 19
  • 4
-3
votes
2 answers

Divide and Conquer Closest Pair Algorithm

I'm trying to create an algorithm that returns the closest pair from randomly generated points. I have finished the algorithm, however the divide and conquer method of the algorithm is not much faster than the brute-force method. What can I do to…
1 2 3 4 5 6 7
8