499 views
0 votes
0 votes
Given only pre-order of a Binary Search Tree, Can we identify a Binary Search Tree Uniquely?

3 Answers

4 votes
4 votes
yes inorder search tree is just increasing order of elements

So, now from inorder and preorder we can find BST
0 votes
0 votes

no not possible suppose 1,2,3 is three elements it has two graphs 

       

so not unique

0 votes
0 votes
NO, either for BST or Binary tree we need atleast 2 traversals for unqiue indentification of tree.

Related questions

0 votes
0 votes
1 answer
1
2 votes
2 votes
1 answer
2
Samujjal Das asked Aug 23, 2016
453 views
Given a tree of 3 nodes A,B and C, the Inorder Traversal is CAB and the Preorder Traversal is ABC. What is the structure of the tree?
1 votes
1 votes
2 answers
3
Jithin Jayan asked Jul 23, 2016
664 views
Given an unsorted Array of n elements and asked to find the Largest element of that array. Can we use Max-Heapify Procedure to find the Largest element in that array in O...