ClosestPair Methods |
The ClosestPair type exposes the following members.
Name | Description | |
---|---|---|
![]() | Distance |
Returns the Eucliden distance between the closest pair of points. |
![]() ![]() | MainTest |
Demo test the ClosestPair data type.
Reads in an integer N and N points (specified by
their X- and Y-coordinates) from standard input;
computes a closest pair of points; and prints the pair to standard
output. |