Question 88
Explanation
In a B-Tree, each node represents a disk block. Suppose one block holds 8192 bytes. Each key uses 32 bytes. In a B-tree of order M there are M - 1 keys. Since each branch is on another disk block. we assume a branch is of 4 bytes. The total memory requirement for a non-leaf node is
Answer : (2) 36 M - 32Explanation
Previous | Next |
UGC NET CS December 2019 - Question 87 | UGC NET CS December 2019 - Question 89 |
The size of non-leaf node in B-tree = m(Pb) + (m-1)(key+ Pr)
Here Pb is Block pointer and Pr is record pointer.
In question, its Given that
Pb = 4
key size = 32
since the size of Pr is not given in question consider it as zero.
Hence size of non-leaf node in B-tree
= m(4) + (m-1)(32)
= 36M - 32
So, option 2 is correct answer