Skip to main content

Optimal Integer Alphabetic Trees in Linear Time

  • Conference paper

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 3669))

Abstract

We show that optimal alphabetic binary trees can be constructed in O(n) time if the elements of the initial sequence are drawn from a domain that can be sorted in linear time. We describe a [6] hybrid algorithm that combines the bottom-up approach of the original Hu-Tucker algorithm with the top-down approach of Larmore and Przytycka’s Cartesian tree algorithms. The hybrid algorithm demonstrates the computational equivalence of sorting and level tree construction.

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

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   84.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Huffman, D.A.: A method for the construction of minimum redundancy codes. Proceedings of the IRE 40, 1098–1101 (1952)

    Article  Google Scholar 

  2. Abrahams, J.: Code and parse trees for lossless source encoding. In: Proceedings Compression and Complexity of Sequences, pp. 146–171 (1997)

    Google Scholar 

  3. Gilbert, E.N., Moore, E.F.: Variable length binary encodings. Bell System Technical Journal 38, 933–968 (1959)

    MathSciNet  Google Scholar 

  4. Knuth, D.E.: Optimum binary search tree. Acta Informatica 1, 14–25 (1971)

    Article  MATH  Google Scholar 

  5. Hu, T.C., Tucker, A.C.: Optimal computer search trees and variable-length alphabetic codes. SIAM Journal on Applied Mathematics 21, 514–532 (1971)

    Article  MathSciNet  MATH  Google Scholar 

  6. Garsia, A.M., Wachs, M.L.: A new algorithm for minimal binary search trees. SIAM Journal on Computing 6, 622–642 (1977)

    Article  MathSciNet  MATH  Google Scholar 

  7. Hu, T.C., Morgenthaler, J.D.: Optimum alphabetic binary trees. In: Deza, M., Manoussakis, I., Euler, R. (eds.) CCS 1995. LNCS, vol. 1120, pp. 234–243. Springer, Heidelberg (1996)

    Google Scholar 

  8. Klawe, M.M., Mumey, B.: Upper and lower bounds on constructing alphabetic binary trees. SIAM Journal on Discrete Mathematics 8, 638–651 (1995)

    Article  MathSciNet  MATH  Google Scholar 

  9. Larmore, L.L., Przytycka, T.M.: The optimal alphabetic tree problem revisited. Journal of Algorithms 28, 1–20 (1998)

    Article  MathSciNet  MATH  Google Scholar 

  10. Hu, T.C.: A new proof of the T-C algorithm. SIAM Journal on Applied Mathematics 25, 83–94 (1973)

    Article  MathSciNet  MATH  Google Scholar 

  11. Hu, T.C., Shing, M.T.: Combinatorial Algorithms, 2nd edn. Dover, New York (2002)

    MATH  Google Scholar 

  12. Karpinski, M., Larmore, L.L., Rytter, W.: Correctness of constructing optimal alphabetic trees revisited. Theoretical Computer Science 180, 309–324 (1997)

    Article  MathSciNet  MATH  Google Scholar 

  13. Ramanan, P.: Testing the optimality of alphabetic trees. Theoretical Computer Science 93, 279–301 (1992)

    Article  MathSciNet  MATH  Google Scholar 

  14. Gabow, H.N., Bentley, J.L., Tarjan, R.E.: Scaling and related techniques for geometry problems. In: Proceedings of the 16th ACM Symposium on Theory of Computation, pp. 135–143 (1984)

    Google Scholar 

  15. Gabow, H.N., Tarjan, R.E.: A linear-time algorithm for a special case of disjoint set union. Journal of Computer and System Sciences 30, 209–221 (1985)

    Article  MathSciNet  MATH  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2005 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Hu, T.C., Larmore, L.L., Morgenthaler, J.D. (2005). Optimal Integer Alphabetic Trees in Linear Time. In: Brodal, G.S., Leonardi, S. (eds) Algorithms – ESA 2005. ESA 2005. Lecture Notes in Computer Science, vol 3669. Springer, Berlin, Heidelberg. https://doi.org/10.1007/11561071_22

Download citation

  • DOI: https://doi.org/10.1007/11561071_22

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-29118-3

  • Online ISBN: 978-3-540-31951-1

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics