Pith. sign in

REVIEW 2 cited by

KDTREE 2: Fortran 95 and C++ software to efficiently search for near neighbors in a multi-dimensional Euclidean space

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv physics/0408067 v2 pith:5F7LQTTB submitted 2004-08-14 physics.data-an physics.comp-ph

classification physics.data-anphysics.comp-ph
keywords searchneighborsdataeuclideanhighernearvectoralgorithms
verification ladder T0 review T1 audit T2 compute T3 formal

Signed reviews

No signed human review yet.

0 comments
abstract

Many data-based statistical algorithms require that one find \textit{near or nearest neighbors} to a given vector among a set of points in that vector space, usually with Euclidean topology. The k-d data structure and search algorithms are the generalization of classical binary search trees to higher dimensional spaces, so that one may locate near neighbors to an example vector in $O(\log N)$ time instead of the brute-force O(N) time, with $N$ being the size of the data base. KDTREE2 is a Fortran 95 module, and a parallel set of C++ classes which implement tree construction and search routines to find either a set of $m$ nearest neighbors to an example, or all the neighbors within some Euclidean distance $r.$ The two versions are independent and function fully on their own. Considerable care has been taken in the implementation of the search methods, resulting in substantially higher computational efficiency (up to an order of magnitude faster) than the author's previous Internet-distributed version. Architectural improvements include rearrangement for memory cache-friendly performance, heap-based priority queues for large $m$searches, and more effective pruning of search paths by geometrical constraints to avoid wasted effort. The improvements are the most potent in the more difficult and slowest cases: larger data base sizes, higher dimensionality manifolds containing the data set, and larger numbers of neighbors to search for. The C++ implementation requires the Standard Template Library as well as the BOOST C++ library be installed.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 2 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. OpenAlex reports about 67 citations worldwide. Full citation record

  1. Fast Graph-based Higher-Order Clustering Statistics on the GPU

    astro-ph.IM 2026-07 accept novelty 5.5 of 10

    GRAMSCI v2 replaces binary-search N-point enumeration with O(m) merge-walks, adds parity-decomposed and connected 4pCF, and ports the query engine to OpenACC GPUs with out-of-core tiling.

  2. CHEX-MATE: Cluster Multi-Probes in Three Dimensions (CLUMP-3D) II. Combined Gas and Dark Matter Analysis from X-ray, SZE, and WL

    astro-ph.CO 2025-07 conditional novelty 4.0 of 10

    A triaxial model combining X-ray, SZ, and weak lensing data finds Abell 1689 is elongated along the line of sight and yields M200c = 13.7e14 Msun, lower than the spherical value of 17.8e14 Msun.

Pith tools