in Databases
663 views
0 votes
0 votes
Calculate the order of B+ tree internal node and leaf node respectively if the disk block size is 512 Bytes. Assume that block pointer, record pointer and key field are of 7B, 8B, and 10B respectively

(A) 30,29

(B) 31,30

(C) 29,28

(D) 32,31
in Databases
by
663 views

12 Comments

edited by

I got 30 and 28 :P

n(10+8) + 7 <=512 ==> n =28(internal)

n*7+(n-1)*10 <= 522 ==> n=30(Leaves)

Edit: mistakenly written internal and leaves, it should be

n(10+8) + 7 <=512 ==> n =28(leaves)

n*7+(n-1)*10 <= 522 ==> n=30(internal )

 

0
0

answer is (A)... @Hemanth_13

0
0
getting 31 and 30. is it correct?
0
0
what is order here?
0
0
For internal node(Non-leaf)$ = 30$ and for leaf $=28$
0
0
As nothing is specified we take the general definition

Order for

Internal nodes: max No of record pointers.

Leaf nodes: max No of index record pointers in a block
0
0

Sorry Sir @Utkarsh Joshi in answer key Option is (A) 30,29

0
0

@

i'm not getting $29?$(leaf)

0
0

@BOB can you please provide their solution.. need to look where I'm missing with leaf node

0
0
I am getting $\text{30 and 28}.$
$\text{Internal node}\rightarrow 7P + 10(P-1) \leq 512 \Rightarrow P =30$
$\text{Leaf}\rightarrow Q(8+10) + 7 \leq 512 \Rightarrow Q =28$
1
1

sorry, @Hemanth_13 sir for so last replying

in the image below that was not the gape... it's just blank...

 

0
0
For leaf nodes it should be p not p-1 if any change to standard definition it should be specified in the question
0
0

Please log in or register to answer this question.