Question: Write a Java class capable of reading input from a text file containing 1 million points (doubles), x and y coordinate based, all between 0
Write a Java class capable of reading input from a text file containing 1 million points (doubles), x and y coordinate based, all between 0 and 1.
Then be able to hash the points to a 2-d hash table to be used for spatial hashing. Finally write code to find the two closest points by only looking into neighboring grid cells.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
