Q21
MCQMarks unknown(a) Suppose you are given an empty tree where each node (leaf and internal) can store up to key values. Suppose values are inserted, in order, into the tree. Show the tree pictorially Do NOT show intermediate stages. (b) Suppose instead of splitting a node when it is full, we try to move a value to the left sibling. If there is no left sibling, or the left sibling is full, we split the node. Show the tree after values have been inserted. Assume, as in (a) that each node can hold up to keys. (c) In general, suppose a tree node can hold a maximum of keys,and you insert a long sequence of keys in increasing order. Then what approximately is the average number of keys in each leaf level node. in the normal case, and with the insertion as in (b).
Loading…