The efficiency depends on the query size relative to the data distribution. A small query in a sparse region prunes almost everything. A query that covers the whole space prunes nothing (because every node overlaps), degenerating to a brute-force scan. The quadtree gives you the most benefit when your queries are spatially local, which is exactly the common case for map applications, game physics, and spatial databases.
Материалы по теме:
。关于这个话题,服务器推荐提供了深入分析
11. The Actor Awards Presented by SAG-AFTRA
2 days agoShareSave
Фото: Jared C. Tilton / Getty Images