Quadtree
A tree where each internal node has 4 children, one per quadrant. It's used to split a map and search points by area.
Example
A map with 10 million places is split until each leaf has fewer than 100.
Test yourself: Quadtree
Quadtrees
How many children does each internal node of a quadtree have?
4 children, 1 per quadrant: northwest, northeast, southwest and southeast.
Quadtrees
When a quadtree leaf has too many points, it splits into ___.
If a leaf has 100 points, splitting into 4 leaves each child with about 25. Empty zones, like the ocean, never split.
Quadtrees
A node splits only when it goes over a ___ of points.
With a threshold of 100, a node with 99 points doesn't split.
0/3
â–¶ Play