8,383 views
3 votes
3 votes

Let T be a B-tree of order m and height h. if n is the number of key elements in T then the maximum value of n is ? 

I'm getting $m^{h+1}-1$, Am I correct? 

3 Answers

1 votes
1 votes

Root(height 1) --  1 nodes m pointer m-1 keys

(height 2) --  m nodes m*m pointer m*(m-1)
.
.
.
(height h) --  m(h-1) nodes mh pointer   mh*(m-1)
 

total keys = (m-1) + m*(m-1) + m*m(m-1) +....+ mh*(m-1)

               =   (m-1){ 1 + m + m+ m3 +.... mh}

               = mh-1

0 votes
0 votes
[m^(h+1)-1]/m-1

Related questions

4 votes
4 votes
5 answers
1
focus _GATE asked Oct 21, 2015
2,033 views
If the order of a B-Tree is $20$, then the number of levels needed to store $15,998$ keys are ______.
3 votes
3 votes
2 answers
2
Proton asked Mar 21, 2015
6,043 views
I think answer is 7 ,if not then pls explain .
3 votes
3 votes
2 answers
3
Xylene asked Oct 12, 2017
4,752 views
What is the maximum number of records that can be indexed in B+ tree of level $4$ ,order $10$ where root is at level $1$ ?As the order of tree is $10$, nodes in the last ...
0 votes
0 votes
1 answer
4
Salazar asked Jan 29, 2018
3,960 views
Maximum height of a B+ tree of order m with n key values is (With Derivation), the answer is known Logceil(m/2) NI tried deriving but had some trouble, could someone assi...