MC logo

Prepared to Insert Brown


Dynamic Hashing Example

Next: After Inserting Brown

>> <<

Here, we are preparing to insert brown. It hashes into the 10 block, presently occupied by jones and carter. Since it will not fit, we must split the block. However, there is no place in the index for a 110 block, therefore we must double the index. For this, we simply duplicate the present index immediately below it. This duplicates each link, giving the above structure.
smith011101 white001011 smart010101
jones010010 black111001 watkins101010
james101000 brown000110 franks110010
carter011010 archer110111