11.Indexingยง
- Goals:
- Store large files
- Support multiple search keys
- Support efficient insert, delete, and range queries
Linear index is poor for insertion/deletion.
The 2-3 Tree has a search tree property analogous to the BST.
.
Example: Consider a B+-Tree of order 100 with leaf nodes containing 100 records.
1 level B+-tree:
2 level B+-tree:
3 level B+-tree:
4 level B+-tree:
B-trees are really good at managing a sorted list
- They break the list into manageable chunks
- The leaves of the B+-tree form the list
- The internal nodes of the B+-tree merely help find the right chunk