To restore validity, the keys are redistributed into two adjacent leaves. The left leaf keeps the smaller keys, while the right leaf keeps the larger ones. The boundary key separating these two leaves is passed upward.
This boundary value becomes a new entry in the parent node. As a result, the parent now holds more keys than permitted.
The parent node is therefore divided into two parts, and the separating key between these two parts is promoted further upward. This promoted key is the one that determines the final change at the root level.
The key that ultimately moves upward after all required adjustments is:
\(\boxed{33}\)
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?