The following sequence corresponds to the preorder traversal of a binary search
tree π:
50, 25, 13, 40, 30, 47, 75, 60, 70, 80, 77
The position of the element 60 in the postorder traversal of π is ______. (answer in
integer)
Note: The position begins with 1.

We are given the preorder traversal of a binary search tree \(T\):
50, 25, 13, 40, 30, 47, 75, 60, 70, 80, 77
Step 1: In preorder (Root, Left, Right), the first element is the root, and because \(T\) is a BST, all values smaller than the root appear immediately after it (forming the left subtree's preorder), followed by all values larger than the root (forming the right subtree's preorder).
Root = 50. Values smaller than 50: 25, 13, 40, 30, 47. First value larger than 50 is 75. So:
Left subtree preorder: 25, 13, 40, 30, 47
Right subtree preorder: 75, 60, 70, 80, 77
Step 2: Build the left subtree (rooted at 25). Root = 25. Values less than 25: 13. Values greater than 25: 40, 30, 47. So 13 is the left child of 25, and the right part [40, 30, 47] has root 40, with 30 (less than 40) as its left child and 47 (greater than 40) as its right child.
Step 3: Build the right subtree (rooted at 75). Root = 75. Values less than 75: 60, 70. Values greater than 75: 80, 77. In [60, 70], root is 60 and 70 (greater) becomes its right child (no left child). In [80, 77], root is 80 and 77 (smaller) becomes its left child (no right child). So 60 is the left child of 75 and 80 is the right child of 75.
Step 4: The complete BST rooted at 50:
Step 5: Perform postorder traversal (Left, Right, Root).
Postorder of the 25-subtree: postorder(13), then postorder(40-subtree) = 30, 47, 40, then visit 25. This gives 13, 30, 47, 40, 25.
Postorder of the 75-subtree: postorder(60-subtree) = 70, 60 (60 has only a right child), then postorder(80-subtree) = 77, 80 (80 has only a left child), then visit 75. This gives 70, 60, 77, 80, 75.
Step 6: Combine as (left subtree postorder), (right subtree postorder), root:
13, 30, 47, 40, 25, 70, 60, 77, 80, 75, 50
Step 7: Number the positions starting from 1:
1:13, 2:30, 3:47, 4:40, 5:25, 6:70, 7:60, 8:77, 9:80, 10:75, 11:50
The element 60 is at position 7.
\[\boxed{7}\]
A schedule of three database transactions \(T_1\), \(T_2\), and \(T_3\) is shown. \(R_i(A)\) and \(W_i(A)\) denote read and write of data item A by transaction \(T_i\), \(i = 1, 2, 3\). The transaction \(T_1\) aborts at the end. Which other transaction(s) will be required to be rolled back?

Let π be an odd number greater than 100. Consider a binary minheap with
π elements stored in an array π whose index starts from 1.
Which of the following indices of π do/does NOT correspond to any leaf node of
the minheap?
The height of a binary tree is the number of edges in the longest path from the root
to a leaf in the tree. The maximum possible height of a full binary tree with
23 nodes is _________. (answer in integer)

Let π be the set of all integers from 1 to 15. Consider any order of insertion of the
elements of π into a binary search tree that creates a complete binary tree.
Which one of the following elements can NEVER be the third element that is
inserted?

The set T represents various traversals over binary tree. The set S represents the
order of visiting nodes during a traversal.
T
S
I: Inorder
L: left subtree, node, right subtree
II: Preorder
M: node, left subtree, right subtree
III: Postorder N: left subtree, right subtree, node
Which one of the following is the correct match from T to S ?

Consider a binary search tree (BST) with π leaf nodes (π> 0). Given any node π,
the key present in the node is denoted as πππ(π). All the keys present in the given
BST are distinct. The keys belong to the set of real numbers.
For a node π, let ππ’π(π) denote the node that is its inorder successor. If a node π
does not have an inorder successor, then ππ’π(π) is πππΏπΏ. As there are no
duplicates, if ππ’π(π) is not πππΏπΏ, then πππ(π) < πππ(ππ’π(π)).
Corresponding to every leaf node πΏπ that has a non-NULL ππ’π(πΏπ), a new key ππ
with the following property is to be inserted into the BST.
πππ(πΏπ) < ππ< πππ(ππ’π(πΏπ))
Let πΎ represent the list of all such new keys to be inserted into the BST.
Which of the following statements is/are true?
