Skip to main content
Log in

Alternative methods for the reconstruction of trees from their traversals

  • Part I Computer Science
  • Published:
BIT Numerical Mathematics Aims and scope Submit manuscript

Abstract

It is well-known that given the inorder traversal of a binary tree's nodes, along with either one of its preorder or postorder traversals, the original binary tree can be reconstructed using a recursive algorithm. In this short note we provide a short, elegent, iterative solution to this classical problem.

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

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. A. V. Aho, J. E. Hopcroft and J. D. Ullman,The Design and Analysis of Computer Algorithms, Addison-Wesley, Reading, Mass, 1974.

    Google Scholar 

  2. T. Hikita,Listing and counting subtrees of equal size of a binary tree, Info. Processing Letters, vol. 17, pp. 225–229, 1983.

    Article  Google Scholar 

  3. G. D. Knott,A numbering system for binary trees, Comm. of ACM, vol. 20, pp. 113–115, 1977.

    Article  Google Scholar 

  4. D. E. Knuth,The Art of Computer Programming, Vol. I, Fundamental Algorithms, Second Edition, Addison-Wesley, Reading, Mass., 1973.

    Google Scholar 

  5. M. Solomon and R. A. Finkel,A note on enumerating binary trees, Jour. of ACM, vol. 27, pp. 3–5, 1980.

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Additional information

This research was done while the author held a Navy/ASEE Summer Faculty Research Associateship at the Naval Research Laboratory

Rights and permissions

Reprints and permissions

About this article

Cite this article

Burgdorff, H.A., Jajodia, S., Springsteel, F.N. et al. Alternative methods for the reconstruction of trees from their traversals. BIT 27, 133–140 (1987). https://doi.org/10.1007/BF01934177

Download citation

  • Received:

  • Revised:

  • Issue Date:

  • DOI: https://doi.org/10.1007/BF01934177

CR Classification

Navigation