1,412 views
3 votes
3 votes

Which of the following statement true about B tree and B+ tree index? Assume order of B tree node same as order of B+ tree node.

A. B tree index has more levels than B+ tree index for large number of keys.

B. B+ tree index has more levels than B tree index for large number of keys.

C. Both B tree B+ tree best for sequential access of records.

D. B+ tree index nodes more than B+ tree for large number of keys.

Please Explain every Point.

1 Answer

Best answer
9 votes
9 votes

Since Order of  B tree node same as order of B+ tree node. (Order must have been defined though) but Let's assume the conventional and most widely used definition of Order (Number of Node/Child Pointers) Then It means, In One Block (Node) we can put same number of Keys in both B-tree as well as B+ Tree. Now Because In B Tree, One key is put into One Node only which is not the case in  B+ Tree ( All the Keys are also  available at the bottom level ), B+ tree index has more levels than B tree index for large number of keys. So, From this We can even infer that B+ tree index nodes are more than B tree for large number of keys.


 B+ tree is best suited for sequential access of records Because All the keys are present at the bottom level with Each Node pointing to the next node in the bottom level.


P.S. : This is One Basis of Comparison. There are other situations in which you would get better results for B+ Tree Like When the Node/Block Size is same etc.

selected by

Related questions

0 votes
0 votes
0 answers
1
bts1jimin asked Jan 9, 2019
386 views
Can anyone suggest me any useful source from where I can read b+ tree insertion and deletion?
2 votes
2 votes
2 answers
2
aditi19 asked Nov 23, 2018
1,679 views
what is the minimum and maximum number of keys for non-leaf nodes and leaf nodes for B+ Tree of order p?
0 votes
0 votes
1 answer
3
Vishnathan asked Aug 24, 2018
8,354 views
0 votes
0 votes
0 answers
4
hacker16 asked Jan 30, 2018
364 views
B tree has minimum space utilization equals to 66.6%.explain?