![]() |
VOOZH | about |
It depends on what traversals are given. If one of the traversal methods is Inorder then the tree can be constructed, otherwise not.
Therefore, following combination can uniquely identify a tree.
A unique binary tree cannot always be constructed using:
For example, Preorder, Level-order and Postorder traversals are same for the trees given in above diagram.
So, even if all three traversals (Preorder, Postorder and Level-order) are given, the tree cannot be uniquely constructed.