1.

Five node splitting operations occurred when an entry is inserted into a B-tree. Then how many nodes are written?(a) 14(b) 7(c) 11(d) 5Query is from B-Trees in division B-Trees of Data Structures & Algorithms II got this question during an interview.

Answer»

Right answer is (C) 11

For explanation: If s SPLITS occur in a B-tree, 2s + 1 NODES are written (2 halves of each split and the parent of the last node split). So, if 5 splits occurred, then 2 * 5 + 1, i.e. 11 nodes are written.



Discussion

No Comment Found

Related InterviewSolutions