Machine-translated by Google. Questions are authored in English.
Top

Discussion

Some differences between B tree and B+ tree approaches are :

(i) In a B tree, search keys and data are stored in internal or leaf nodes. But, in B+ tree, data are stored only in leaf nodes.
(ii) A link is maintained among all the nodes so that one can move from the left-most node to right-most node in B+ tree.

  • A.only (i) is correct
  • B.only (ii) is correct
  • C.Both (i) and (ii) are correct
  • D.Both (i) and (ii) are incorrect

Answer: C

Both (i) and (ii) are correct.

In a B tree, keys and their data (or record pointers) are stored in internal nodes as well as leaves. In a B+ tree, internal nodes hold only keys to guide the search, and all data lives in the leaves (i).

The leaves of a B+ tree are also linked together in key order, so after reaching the left-most leaf one can scan sequentially to the right-most, which makes range queries efficient (ii). So neither statement alone is the full picture.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.