Hashing and Indexing Flashcards
The three major categories of
file organizations are
1) Sequential
2) Indexing
3) Hashing
What are sequential index files?
Sequential index files maintain keys in sorted order, allowing for efficient retrieval through sequential access.
What is Indexed?
Records are stored sequentially or nonsequentially
and an index is used to keep track of where the records are
stored.
What is Hashing?
The address of each record is determined using an algorithm that converts a
primary key value into a record address.
Primary Index
A Primary Index is an index structure defined on the ordering key field (the field that is used to physically order records on disk).
Clustering Index
When the ordering field is not a key field (i.e not unique) a clustering index is used. They are always sparse.
Secondary Index
Secondary Index: An index structure defined on a non-ordering field.
Sparse Index
Index records are not created for very search key.
What is static hashing?
The hash function always computes the same address for the search key value provided.
Number of data buckets remains constant.
Dense Index
An index is created for every record