Data Storage |
Data (keys and values) stored in both internal and leaf nodes |
Data stored only in leaf nodes; internal nodes store only keys |
Leaf Node Linking |
Leaf nodes are not linked together |
Leaf nodes are linked in a linked list for fast range queries |
Search Efficiency |
May stop at internal node if key is found |
Always goes down to leaf node even if key is in internal node |
Range Queries |
Slower, as requires in-order traversal |
Faster, due to linked leaves enabling sequential scan |
Tree Height |
Slightly shorter, since data is stored in all nodes |
Slightly taller, as data only at leaves |
Space Utilization |
Better (internal nodes used for data too) |
Less efficient (internal nodes don’t store data) |
Insertion/Deletion |
More complex, as data movement can affect any level |
Simpler logic, since data moves only in leaf level |