What is a B-tree?
Asked at
AI answer
A B-tree (balanced search tree) is a data structure whose nodes can contain multiple keys and references to child nodes. The keys in each node are ordered, and the leaves are at roughly the same depth, so the tree remains balanced. Searching, insertion, and deletion typically take O(log n) operations. In databases, B-tree-like indexes make it possible to find records quickly and perform range queries while reducing the number of disk accesses.
Also asked at SkyCoach
Similar questions
- What is a composite index, what is the main principle behind how it works, and how do you choose which fields to include?
- What is the time and space complexity of your implementation?
- What do you know about indexes? How can you determine which indexes are used in a query, and how can you tell which indexes are unnecessary or missing?
- Can you name other data structures similar to B-tree?
- Explain the principle of operation and purpose of B-trees in data structures.