|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Closest pair of points via divide and conquer. More...
Go to the source code of this file.
Functions | |
| static void | print_banner (const char *title) |
| static Geom_Number | brute_distance_squared (const DynList< Point > &pts, Point &out_a, Point &out_b) |
| int | main () |
Closest pair of points via divide and conquer.
Demonstrates:
ClosestPairDivideAndConquer in O(n log n)Definition in file closest_pair_example.cc.
|
static |
Definition at line 58 of file closest_pair_example.cc.
References Aleph::Array< T >::append(), Aleph::divide_and_conquer_partition_dp(), Aleph::HTList::Iterator::has_curr(), and Aleph::Array< T >::size().
Referenced by main().
| int main | ( | ) |
Definition at line 82 of file closest_pair_example.cc.
References Aleph::DynList< T >::append(), brute_distance_squared(), Aleph::divide_and_conquer_partition_dp(), print_banner(), and r.
|
static |
Definition at line 52 of file closest_pair_example.cc.
Referenced by main().