Basic Concepts
Next: Indexing
Up: Indexing & Hashing
Previous: Indexing & Hashing
- An index for a file works like a catalogue in a library.
- Cards in alphabetic order tell us where to find books by a particular
author.
- In real-world databases, indices like this might be too large to be
efficient.
- We'll look at more sophisticated indexing techniques, and at hashing
techniques as an alternative.
- Methods will be evaluated on:
- Access Time - time to find a particular data item.
- Insertion Time - time taken to insert a new data item
(includes time to find the right place to insert).
- Deletion Time - time to delete an item
(includes time taken to find item, as well as to update the index structure).
- Space Overhead - additional space occupied by an index structure.
- We may have more than one index or hash function for a file.
(The library may have card catalogues by author, subject or title.)
- The attribute or set of attributes used to look up records in a file is
called the search key (not to be confused with primary key, etc.).
Page created and maintained by Osmar R. Zaï ane
Last Update:
Wed Nov 15 11:12:38 PST 1995