Skip to content
Related Articles
Open in App
Not now

Related Articles

ISRO | ISRO CS 2018 | Question 12

Improve Article
Save Article
  • Last Updated : 07 Apr, 2021
Improve Article
Save Article

In a file which contains 1 million records and the order of the tree is 100, then what is the maximum number of nodes to be accessed if B+ tree index is used?

(A) 5
(B) 4
(C) 3
(D) 10


Answer: (B)

Explanation: We have to find the maximum no. of nodes to be accessed in B+ tree so we have to consider the minimum fill factor.

Here,

number of record = 1 million = 10^6 (Given )

order of b+tree= number of pointers per node = p = 100 (Given )

Minimum pointers per node =⌈ p/ 2⌉ = ⌈ 100/ 2⌉ = 50

number of nodes in last level of tree =10^6 / 50 = 2 * 10^4

Number of nodes in Second last level of tree = 2*10^4 / 50 = 400

Number of nodes in Third last level of tree = 400/50 =8

number of node in Forth last level of tree = 8/50 =1

The maximum no. of nodes to be accessed = number pf B+ tree levels = 4

Hence, option ( B ) is correct.

Quiz of this Question

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!