Skip to main content

A uniform analysis of trie structures that store prefixing-keys with application to doubly-chained prefixing-tries

  • Contributed Papers
  • Conference paper
  • First Online:

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 1113))

Abstract

Tries are data structures for storing sets where each element is represented by a key that can be viewed as a string of characters over a finite alphabet. These structures have been extensively studied and analyzed under several probability models. All of these models, however, preclude the occurrence of sets in which the key of one element is a prefix of that of another — such a key is called a prefixing-key.

This paper presents an average case analysis of several trie varieties, which we generically called doubly-chained prefixingtries, for representing sets with possible prefixing-keys. The underlying probability model, which we call the prefix model, P h,n,m assumes as equally likely all n-element sets whose keys are composed of at most h characters from a fixed alphabet of size m. For each of the trie varieties analyzed, we derive exact formulas for the expected space required to store such a set, and the average time required to retrieve an element given its key, as functions of h, n, and m.

Our approach to the analysis is of interest in its own right. It provides a unifying framework for computing the expectations of a wide class of random variables with respect to the prefix model. This class includes the cost functions of the trie varieties analyzed here.

The research of this author was supported in part by the National Science Foundation under Grant CCR-9010445, and CCR-9410592.

The research of this author was supported in part by the National Science Foundation under Grant IRI-9117153.

This is a preview of subscription content, log in via an institution.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. R. de la Brandais. File Searching Using Variable Length Keys. In Proceedings of Western Joint Computer Conference, volume 15, pages 295–298, 1959.

    Google Scholar 

  2. P. de la Torre. Analysis of Tries. Ph.D. Thesis CS-TR-1890, Department of Computer Science, University of Maryland, 1987.

    Google Scholar 

  3. P. de la Torre. Analysis of Tries that Store Prefixing Keys. Technical Report UMIACS-TR-87-59, Institute of Advanced Computer Studies, University of Maryland, December 1987. A revised version of this paper has appeared as Technical Report 95-18, Department of Computer Science, University of New Hampshire.

    Google Scholar 

  4. P. de la Torre. Extending the Flajolet-Regnier-Sotteau Method of Trie Analysis to the Prefix Model. Technical Report UMIACS-TR-87-60, Institute of Advanced Computer Studies, University of Maryland, December 1987. A revised version of this paper has appeared as Technical Report 94-18, Department of Computer Science, University of New Hampshire.

    Google Scholar 

  5. P. de la Torre and D. T. Kao. An Algebraic Approach to the Prefix Model Analysis of Binary Trie Structures and Set Intersection Algorithms. Technical Report 94-18, Department of Computer Science, University of New Hampshire, 1994. Submitted to Discrete Mathematics. This is a revised version of the University of Maryland technical report UMIACS-TR-87-60.

    Google Scholar 

  6. P. de la Torre and D. T. Kao. A Uniform Approach to the Analysis of Trie Structures that Store Prefixing Keys. Technical Report 95-18, Department of Computer Science University of New Hampshire, 1995. To appear in Journal of Algorithms. This is a revised version of the University of Maryland technical report UMIACS-TR-87-59.

    Google Scholar 

  7. P. de la Torre and D. T. Kao. Extended Abstract: An Algebraic Approach to the Prefix Model Analysis of Binary Trie Structures and Set Intersection Algorithms. In B. Leclerc and J. Y. Thibon, editors, Formal Power Series and Algebraic Combinatorics: 7th Conference, pages 127–138, Paris, France, 1995.

    Google Scholar 

  8. E. Fredkin. Trie Memory. CACM, 3(9):490–499, 1960.

    Google Scholar 

  9. Ph. Flajolet, M. Regnier, and D. Sotteau. Algebraic Methods for Trie Statistics. Annals of Discrete Mathematics, 25:145–188, 1985.

    Google Scholar 

  10. G. H. Gonnet and R. Baeza-Yates. Handbook of Algorithms and Data Structures: In Pascal and C. Addison-Wesley, Reading, Massachusetts, 2 edition, 1991.

    Google Scholar 

  11. G. Gwegenberger. Anwendung einer binären Verweiskettenmethode beim Aufbau von Listen. Elektronische Rechenanlagen, 10:223–226, 1968.

    Google Scholar 

  12. G. D. Knott. Including Prefixes in Doubly-Chained Tries. Technical Report CAR-TR-236, Computer Science Department, University of Maryland, 1986.

    Google Scholar 

  13. D. E. Knuth. The Art of Computer Programming, Volume 1: Fundamental Algorithms. Addison-Wesley, Reading, Massachusetts, 1973.

    Google Scholar 

  14. D. E. Knuth. The Art of Computer Programming, Volume 3: Sorting and Searching. Addison-Wesley, Reading, Massachusetts, 1973.

    Google Scholar 

  15. D. R. Morrison. PATRICIA — Practical Algorithm to Retrieve Information Coded in Alphanumeric. JACM, 15:514–534, 1968.

    Article  Google Scholar 

  16. E. H. Sussenguth. Use of Tree Structures for Processing Files. CACM, 6:272–279, May 1963.

    Google Scholar 

  17. L. I. Trabb Pardo. Set Representation and Set Intersection. Ph.D. Thesis STAN-CS-78-681, Department of Computer Science, Stanford University, 1978.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Wojciech Penczek Andrzej Szałas

Rights and permissions

Reprints and permissions

Copyright information

© 1996 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

de la Torre, P., Kao, D.T. (1996). A uniform analysis of trie structures that store prefixing-keys with application to doubly-chained prefixing-tries. In: Penczek, W., Szałas, A. (eds) Mathematical Foundations of Computer Science 1996. MFCS 1996. Lecture Notes in Computer Science, vol 1113. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-61550-4_177

Download citation

  • DOI: https://doi.org/10.1007/3-540-61550-4_177

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-61550-7

  • Online ISBN: 978-3-540-70597-0

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics