1.

A B-tree of order 4 and of height 3 will have a maximum of _______ keys.(a) 255(b) 63(c) 127(d) 188I would like to ask this question from B-Trees in portion B-Trees of Data Structures & Algorithms II had been asked this question during an interview for a job.

Answer»

The correct choice is (a) 255

Easiest explanation - A B-tree of order m of HEIGHT h will have the maximum number of KEYS when all nodes are completely FILLED. So, the B-tree will have n = (m^h+1 – 1) keys in this SITUATION. So, REQUIRED number of maximum keys = 4^3+1 – 1 = 256 – 1 = 255.



Discussion

No Comment Found

Related InterviewSolutions