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

Discussion

Which operation benefits most dramatically from the linked leaf nodes in a B+ tree ?

  • A.Exact key search
  • B.Successor lookup
  • C.Parent node splitting
  • D.Structural rebalancing

Answer: B

The operation that benefits most is successor lookup.

In a B+ tree all keys sit in the leaves, and the leaves are chained by pointers in key order. Once a key has been found, its successor (the next larger key) is either next in the same leaf or the first key of the next leaf, reached in one step through the link instead of a new walk from the root. That is why range scans and ordered traversal are fast in B+ trees.

An exact key search still goes from the root to a leaf, so the links do not help it. Parent node splitting and structural rebalancing are insertion and deletion mechanics on the internal levels and do not use the leaf chain.

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

Post your comment

Please log in or register to post a comment.