Direct File
Direct File
File
Organization
2006 Hakan Uraz - File Organization
1
Progressive Overflow
• In coalesced hashing, storage is needed for link
fields. When this storage is not available, we need
a convention for where to search next.
• Progressive overflow (linear probing) is one
convention. If a location is occupied, we look at
the next location to see if it is empty. Table is
circular. We continue until we find an empty slot
or we encounter the home address of the record a
second time (table is full).
• For retrieval, we follow the same process.
• Performance is poor for an unsuccessful search.
2006 Hakan Uraz - File Organization
2
Progressive Overflow - Example
Insert 27, 18, 29, 28, 39, 13, 16
Hash(key) = key mod 11
27 is moved to location 0.
Insertion of 16
using the
modified
process.