B-Tree Quiz Solutions
1. What is a B-Tree?
- A) A binary search tree that is balanced.
- B) A tree data structure that maintains sorted data and allows searches, sequential access, insertions, and deletions in logarithmic time.
- C) A type of tree that only allows three children per node.
- D) A tree used exclusively for storing strings.
Solution: B) A tree data structure that maintains sorted data and allows searches, sequential access, insertions, and deletions in logarithmic time.
Details
Explanation:
A B-Tree is a self-balancing tree data structure that keeps data sorted and allows operations like searching, insertion, and deletion in logarithmic time. It is widely used in database and file systems.2. What is the minimum degree of a B-Tree?
- A) The minimum number of keys a node can contain.
- B) The maximum number of children a node can have.
- C) The maximum number of keys a node can contain.
- D) The number of levels in the tree.
Solution: A) The minimum number of keys a node can contain.
Details
Explanation:
The minimum degreet of a B-Tree is the minimum number of keys each node can have, except for the root node. It defines the tree's branching factor.