Index¶
Basic Concepts

Primary Index¶
- index sequence is equal to the key sequence
Secondary Index¶
Example

Dense INdex Files¶
Note
 

Sparse Index Files¶
Note

Multilevel Index¶
Note

B+ Tree¶
- If there are K search-key values in the file, the tree height is no more than \(\lceil \log_{n/2} K \rceil\). searches can be conducted efficiently.
- 
A node is generally the same size as a disk block, typically 4 kilobytes 
- 
n is typically around 100 (40 bytes per index entry). 
- 
The height of the tree is no more than \(\lceil \log_{n/2} K \rceil\).