Click or drag to resize
ClosestPair Methods

The ClosestPair type exposes the following members.

Methods
  NameDescription
Public methodDistance
Returns the Eucliden distance between the closest pair of points.
Public methodStatic memberMainTest
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.
Top
See Also