Computer Sciences > GATE 2024 Set-2 > Binary Search Trees
You are given a set V of distinct integers. A binary search tree T is created by inserting all elements of V one by one, starting with an empty tree. The tree T follows the convention that, at each node, all values stored in the left subtree of the node are smaller than the value stored at the node. You are not aware of the sequence in which these values were inserted into T, and you do not have access to T. Which one of the following statements is TRUE?
A
Inorder traversal of T can be determined from V
B
Root node of T can be determined from V
C
Preorder traversal of T can be determined from V
D
Postorder traversal of T can be determined from V

Correct : a

Similar Questions

Suppose the values 10, -4, 15, 30, 20, 5, 60, 19 are inserted in that order into an initially empty binary search tree. Let T be the resulting binary search tre...
#1443 NAT
Suppose the values 10, -4, 15, 30, 20, 5, 60, 19 are inserted in that order into an initially empty binary search tree. Let T be the resulting binary search tre...
#1443 NAT

Related Topics

No tags found

Unique Visitor Count

Total Unique Visitors

Loading......