k-d Trees & Nearest Neighbour
In short: every balanced tree so far split on one key. A k-d tree splits a set of points on alternating coordinates — x at the root, y at its children, x again below that — always at the median, so each split keeps the two halves even. The payoff is nearest-neighbour search: instead of checking every point, you can prune a whole half-plane the moment its splitting line alone is already farther away than the best point found so far. No distance check is needed inside a pruned half — it's ruled out by one comparison, not by visiting it.

Snapping a map tap to the nearest pin
A maps app has a few thousand saved pins and needs to answer "which pin did the user just tap near?" many times a second while they drag the map. A k-d tree built once over the pins answers each query by pruning, not scanning:
The nearest pin to (9, 2) is (8, 1) — found after visiting only 3 of the
6 pins. The other 3, all on the far side of the root's split line, were
ruled out in one comparison each.