88#ifndef __ADS_ClosestPair
89 #define __ADS_ClosestPair
162inline std::pair< std::pair< std::size_t , std::size_t > , std::int64_t >
218inline std::pair< std::pair< std::size_t , std::size_t > , std::int64_t >
239inline std::pair< std::pair< std::size_t , std::size_t > , std::int64_t >
250#include "ADS/geometry/impl/ClosestPair.tpp"
The contracts of ADS: the preconditions, the postconditions and the invariants of the operations,...
The convex hull of a set of points of the plane (section 16.1), the smallest convex polygon that co...
The engineered random numbers, beyond the book: generators of 64 bits that cost a few instructions an...
The sort that chooses its algorithm, beyond the book: sort() and stableSort() look at what they sort ...
std::pair< std::pair< std::size_t, std::size_t >, std::int64_t > closestPair(const std::vector< Point > &P)
the places of the two closest points of and the square of their distance, by divide et impera;
std::int64_t squaredDistance(const Point &p, const Point &q)
the square of the distance of and
std::pair< std::pair< std::size_t, std::size_t >, std::int64_t > closestPairBrute(const std::vector< Point > &P)
a closest pair, the first of the least distance in the order of the loops (not always the one of clos...
std::pair< std::pair< std::size_t, std::size_t >, std::int64_t > closestPairSweep(const std::vector< Point > &P)
the pair of closestPair() by the sweep on the points sorted by , and by the randomized grid when the ...
a point of the plane, of integer coordinates
Definition ConvexHull.h:101