Terminology: Sequential file
Terminology: Ordered index (file)
Usage:
use binary search in
(smaller) index file to find
search key
Then follow the
database address (pointer) to
find the record
Terminology: Primary index (file)
Terminology: Index sequential file
Terminology: Secondary index (file)
Terminology: Dense index
Example of a Dense index
Terminology: Sparse index
Example: Sparse index
Example on using
a Sparse index
How do we find the
data record using the
sparse index ?
Example on using
a Sparse index
Look up
search
key ≤ 40 in
sparse index file
Example on using
a Sparse index
Follow database address to
data block
(or next level index !!)
Example on using
a Sparse index
Search key in
data block
❮
❯