712 views
2 votes
2 votes
A B-tree used as an index for a large database table has four levels including root node. If a new key is inserted in this index, then the maximum number of nodes that could be newly created in this process are

A) 5

B) 4

C) 3

D) 2

1 Answer

2 votes
2 votes
Starting from the last level, if we do a new entry, then the node may be filled and split into 2 nodes and middle element goes one above.. similarly at third level on adding middle element that node may get filled and requires splitting and split into two nodes.. similarly for level 2 and level 1(root level)..

then max number of nodes that could be created is 4.

Related questions

0 votes
0 votes
1 answer
1
1 votes
1 votes
2 answers
3
Sankaranarayanan P.N asked Oct 27, 2016
1,275 views
A table has fields F1, F2, F3, F4, F5 with the following functional dependencies $F1 \rightarrow $F1 \rightarrow F3, F2 \rightarrow F4, (F1,F2) \rightarrow F5$F3$ in ter...