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)

Step 1: In a full binary tree, every node has either 0 children (a leaf) or exactly 2 children. This forces the number of leaves to be exactly one more than the number of internal (2-child) nodes: if \(N\) is the total nodes, \(I\) the internal nodes and \(L\) the leaves, then \(N = I + L\) and \(L = I + 1\), giving \(N = 2I + 1\).
Step 2: With \(N = 23\), we get \(23 = 2I+1\), so \(I = 11\) internal nodes and \(L = 12\) leaves.
Step 3: To maximize the height (the number of edges on the longest root-to-leaf path), the tree must be as skewed as possible while still remaining a full binary tree. This is achieved by a caterpillar-shaped tree: every internal node except the last has one leaf child and one internal child that continues the chain; the last internal node has two leaf children.
Step 4: In this skewed shape, the 11 internal nodes occupy levels 0 through 10 (one per level), and the two deepest leaves, children of the last internal node, sit at level 11. So the longest root-to-leaf path has 11 edges.
Step 5: This arrangement uses exactly 11 internal nodes and 12 leaves (one side leaf at each of levels 1 to 10, plus 2 leaves at level 11), matching \(N = 23\) and giving the tallest possible full binary tree with this many nodes.
Final Answer: \[\boxed{\text{Maximum height} = 11}\]
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?
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?

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.
