Acta Informatica

, Volume 4, Issue 1, pp 1–9 | Cite as

Quad trees a data structure for retrieval on composite keys

  • R. A. Finkel
  • J. L. Bentley
Article

Summary

The quad tree is a data structure appropriate for storing information to be retrieved on composite keys. We discuss the specific case of two-dimensional retrieval, although the structure is easily generalised to arbitrary dimensions. Algorithms are given both for staightforward insertion and for a type of balanced insertion into quad trees. Empirical analyses show that the average time for insertion is logarithmic with the tree size. An algorithm for retrieval within regions is presented along with data from empirical studies which imply that searching is reasonably efficient. We define an optimized tree and present an algorithm to accomplish optimization in n log n time. Searching is guaranteed to be fast in optimized trees. Remaining problems include those of deletion from quad trees and merging of quad trees, which seem to be inherently difficult operations.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Knuth, D. E.: The art of computer programming, vol. 3: Sorting and Searching. Reading (Mass.): Addison-Wesley 1973Google Scholar

Copyright information

© Springer-Verlag 1974

Authors and Affiliations

  • R. A. Finkel
    • 1
  • J. L. Bentley
    • 2
  1. 1.Computer Science DepartmentStanford UniversityStanfordUSA
  2. 2.Computer Science DepartmentUniversity of North CarolinaChapel HillUSA

Personalised recommendations