S
sophia
Dear all,
Is it possible to re create a binary tree from given preorder and post
order traversals ?
Is it possible to re create a binary tree from given preorder and post
order traversals ?
sophia said:Is it possible to re create a binary tree from given preorder and post
order traversals ?
sophia said:Is it possible to re create a binary tree from given preorder and post
order traversals ?
Yes.
Yes.
Look for,
"An optimal parallel algorithm to reconstruct a binary tree from its
traversals" by Stephan Olariu, Michael Overstreet and Zhaofang Wen
where to get free copy of the above
You might find a linear version more useful,
http://citeseer.ist.psu.edu/andersson90construction.html
Construction of a Tree from its Traversals in Optimal Time and Space (1990)
Arne Andersson, Svante Carlsson
http://citeseer.ist.psu.edu/166720.html
Constructing a Binary Tree Efficiently from Its Traversals (1998)
Erkki Makinen
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.