Skip to main content

Compressed Tree Representations

  • Living reference work entry
  • First Online:
Encyclopedia of Algorithms

Years and Authors of Summarized Original Work

1989; Jacobson

2001; Munro, Raman

2005; Benoit, Demaine, Munro, Raman, S. Rao

2014; Navarro, Sadakane

Problem Definition

The problem is, given a tree, to encode it compactly so that basic operations on the tree are done quickly, preferably in constant time for static trees. Here, we consider the most basic class of trees: rooted ordered unlabeled trees. The information-theoretic lower bound for representing an n-node ordered tree is 2n − o(n) bits because there are \({2n - 2\choose n - 1}/n\) different trees. Therefore, the aim is to encode an ordered tree in 2n + o(n) bits including auxiliary data structures so that basic operations are done quickly. We assume that the computation model is the Θ(logn)-bit word RAM, that is, memory access for consecutive Θ(logn) bits and arithmetic and logical operations on two Θ(logn)-bit integers are done in constant time.

Preliminaries

Let X be a string on alphabet \(\mathcal{A}\). The number of...

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

Access this chapter

Institutional subscriptions

Recommended Reading

  1. Arroyuelo D, Cánovas R, Navarro G, Sadakane K (2010) Succinct trees in practice. In: Proceedings of 11th workshop on algorithm engineering and experiments (ALENEX), Austin. SIAM Press, pp 84–97

    Google Scholar 

  2. Benoit D, Demaine ED, Munro JI, Raman R, Raman V, Rao SS (2005) Representing trees of higher degree. Algorithmica 43(4):275–292

    Article  MATH  MathSciNet  Google Scholar 

  3. Chan HL, Hon WK, Lam TW, Sadakane K (2007) Compressed indexes for dynamic text collections. ACM Trans Algorithms 3(2):article 21

    Google Scholar 

  4. Clark DR (1996) Compact pat trees. PhD thesis, University of Waterloo

    Google Scholar 

  5. Denzumi S, Kawahara J, Tsuda K, Arimura H, Minato Si, Sadakane K (2014) DenseZDD: a compact and fast index for families of sets. In: Experimental algorithms (SEA), Copenhagen. LNCS 8503, pp 187–198

    Google Scholar 

  6. Farzan A, Munro JI (2014) A uniform paradigm to succinctly encode various families of trees. Algorithmica 68(1):16–40

    Article  MATH  MathSciNet  Google Scholar 

  7. Farzan A, Raman R, Rao SS (2009) Universal succinct representations of trees? In: Automata, languages and programming, 36th international colloquium (ICALP), Rhodes, pp 451–462

    Google Scholar 

  8. Geary RF, Rahman N, Raman R, Raman V (2006a) A simple optimal representation for balanced parentheses. Theor Comput Sci 368:231–246

    Article  MATH  MathSciNet  Google Scholar 

  9. Geary RF, Raman R, Raman V (2006b) Succinct ordinal trees with level-ancestor queries. ACM Trans Algorithms 2:510–534

    Article  MathSciNet  Google Scholar 

  10. He M, Munro JI, Satti SR (2012) Succinct ordinal trees based on tree covering. ACM Trans Algorithms 8(4):42

    Article  MathSciNet  Google Scholar 

  11. Jacobson G (1989) Space-efficient static trees and graphs. In: Proceedings of IEEE FOCS, Research Triangle Park, pp 549–554

    MATH  Google Scholar 

  12. Jansson J, Sadakane K, Sung WK (2012) Ultra-succinct representation of ordered trees with applications. J Comput Syst Sci 78(2):619–631

    Article  MATH  MathSciNet  Google Scholar 

  13. Joannou S, Raman R (2012) Dynamizing succinct tree representations. In: 11th international symposium experimental algorithms (SEA) 2012, Bordeaux, pp 224–235

    Google Scholar 

  14. Lu HI, Yeh CC (2008) Balanced parentheses strike back. ACM Trans Algorithms (TALG) 4(3):article 28

    Google Scholar 

  15. Maruyama S, Tabei Y, Sakamoto H, Sadakane K (2013) Fully-online grammar compression. In: Proceedings of string processing and information retrieval (SPIRE), Jerusalem. LNCS 8214, pp 218–229

    Google Scholar 

  16. Munro JI, Raman V (2001) Succinct representation of balanced parentheses and static trees. SIAM J Comput 31(3):762–776

    Article  MATH  MathSciNet  Google Scholar 

  17. Munro JI, Raman R, Raman V, Rao SS (2012) Succinct representations of permutations and functions. Theor Comput Sci 438:74–88

    Article  MathSciNet  Google Scholar 

  18. Navarro G (2009) Implementing the LZ-index: theory versus practice. J Exp Algorithmics 13:article 2

    Google Scholar 

  19. Navarro G, Sadakane K (2014) Fully-functional static and dynamic succinct trees. ACM Trans Algorithms 10(3):article 16

    Google Scholar 

  20. Sadakane K (2007) Compressed suffix trees with full functionality. Theory Comput Syst 41(4):589–607

    Article  MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Kunihiko Sadakane .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Springer Science+Business Media New York

About this entry

Cite this entry

Navarro, G., Sadakane, K. (2015). Compressed Tree Representations. In: Kao, MY. (eds) Encyclopedia of Algorithms. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-27848-8_641-1

Download citation

  • DOI: https://doi.org/10.1007/978-3-642-27848-8_641-1

  • Received:

  • Accepted:

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Online ISBN: 978-3-642-27848-8

  • eBook Packages: Springer Reference Computer SciencesReference Module Computer Science and Engineering

Publish with us

Policies and ethics