Overview
A Quadtree stores points or objects in a tree of square or rectangular regions, splitting crowded regions into four children.
Indexes 2D space by recursively subdividing regions into four quadrants.
Compact metadata for implementation and discovery.
A Quadtree stores points or objects in a tree of square or rectangular regions, splitting crowded regions into four children.
Quick facts
Runtime and memory behavior at a glance.
Best
O(log n)
Average
O(log n) average query
Worst
O(n)
Space
O(n)
Show a 2D region splitting into four children where points are dense.
Unbalanced distributions can create deep trees unless split depth is capped.
What each reference supports for this entry.
Data-structures reference for quadtrees, recursive planar subdivision, and spatial indexing.
Good next jumps from the relationship graph, ranked for useful discovery.
Data Structures · Core
Quadtrees and k-d trees are spatial partitioning structures with different split rules.
Compare with thisQuadtrees and k-d trees are spatial partitioning structures with different split rules.