Construction of a Tree From its Traversals in Optimal Time and Space
暂无分享,去创建一个
Abstract Given the preorder traversal of a tree together with some additional structure information, the tree can be constructed in linear time with a simple algorithm. The additional information may be the inorder or postorder traversal. In one case, the binary search tree, no additional information is required. We also show how to transform the construction algorithm into a nonrecursive algorithm requiring only constant space.
[1] Sushil Jajodia,et al. Alternative methods for the reconstruction of trees from their traversals , 1987, BIT Comput. Sci. Sect..
[2] Jon Louis Bentley,et al. Multidimensional binary search trees used for associative searching , 1975, CACM.
[3] Gen-Huey Chen,et al. Two Algorithms for Constructing a Binary Tree from its Traversals , 1988, Inf. Process. Lett..