Slide 13.15: A better solution: an inverted list
Slide 14.1: B-tree evloution
Home

Implementation of an Inverted List


A record in the secondary key index of composers points to a relative number (RRN) in the Label ID List file, which is a fixed-length file. The following shows an example of record addition:
The figure on the right shows an example of associating the secondary index file with a new file containing linked lists of references.

Advantages
Disadvantages
Locality (in the secondary index) has been lost. Example: The list of Label IDs for Prokofiev consist of the very first and the very last records in the file. More seeking may be necessary.