in Databases recategorized
1,606 views
0 votes
0 votes

The order of a leaf node in a $B^{+}$ tree is the maximum number of children it can have. Suppose that block size is $1$ kilobytes, the child pointer takes $7$ bytes long and search field value takes $14$ bytes long. The order of the leaf node is _________.

  1. $16$
  2. $63$
  3. $64$
  4. $65$
in Databases recategorized
1.6k views

3 Answers

3 votes
3 votes
data pointer = child pointer + search field value = 14+7 = 21B

so max number of children it can have = 1KB/21B = 1024/21 = 48.76 = 48(approx)

All other options are greater than the 48 can go with option 1 as asnwer

4 Comments

oh,, okay
1
1
how it will be 16 means how 48 can connect to 16?
0
0
what is data (record pointer here) . B+tree leaf have only one child pointer
0
0
0 votes
0 votes
Official Key is 9 ie ALL CORRECT
0 votes
0 votes
$key size*(n-1)+n*child pointer \leqslant block size$

$14*(n-1)+7*n \leqslant 1024$

$21*n-14\leqslant1024$

$21*n\leqslant1038$

$n\leqslant1038/21$

$n\leqslant49.42$

$n$  should be less than $49.42$

i think ans should be Option A($16\leqslant49.42$)
Answer:

Related questions