kd-trees allow to efficiently perform searches like "all points at distance lower than R from X" or "k nearest neighbors of X". php
Kd-trees allow to perform efficient search in low-dimensional spaces (from 1 to 5), but have lesser performance in high-dimensional spaces.spring
Reference :less