img
Question:
Published on: 3 December, 2024

What is a B-Tree? Show how the letters A to P English alphabet can be entered into a B-tree of order 4.

 

 

Answer:

B-Tree

Definition: A B-Tree of order 'm' is an “m" way tree such that

  1. All leaf nodes are at the same level.

  2. All leaf nodes (except the root) have at most m and at least m/2 children.

  3. The number of keys is one less than the number of children for non-leaf node and at most m “1” and at least m/2 for leaf nodes.

  4. The root may have as few as 2 children unless the tree is the root alone.

Example: The  letters  A  to  P  English  alphabet  can  be   entered   into   a   B-tree   of order 4.                        

BTree

 

Random questions