13.07.2015 Views

13.1 through 13.5, 13.10 and 13.11

13.1 through 13.5, 13.10 and 13.11

13.1 through 13.5, 13.10 and 13.11

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

IFF494 Chapter 13 Disk Storage, Basic File Structures, <strong>and</strong> HashingDirectorylnnal danth n{each bucketData file buckets000001010011100101110'I 11Bucket for recordswhose hash valuesstart with 000Bucket for recordswhose hash valuesstart with 001Bucket for recordswhose hash valuesstart with O1Bucket for recordswhose hash valuesstart with 1OBucket for recordswhose hash valuesstart with 110Figure <strong>13.1</strong>1Structure of the extendible hashinq scheme.Bucket for recordswhose hash valuesstartwith |11function h(X) = K mod M; this hash function is called the initial hash function ft'.Overflow because of collisions is still needed <strong>and</strong> can be h<strong>and</strong>led by maintainingindividual overflow chains for each bucket. However, when a collision leads to anoverflow record in any file bucket, the frsr bucket in the file-bucket 0-is split intotwo buckets: the original bucket 0 <strong>and</strong> a new bucket M at the end of the file. The

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!