Extendible hashing

« Back to Glossary Index

Introduction and Overview of Extendible Hashing
– Extendible Hashing is a fast access method for dynamic files.
– It is a hash-based indexing technique.
– It allows for efficient insertion and retrieval of data.
– The hash function returns a string of bits.
– The first i bits of each string are used as indices to determine the location in the directory (hash table).

Key Insertion, Bucket Overflow, and Directory Organization
– Keys are inserted into the hash table based on their hashed values.
– If a bucket becomes full, it needs to be split.
– The local depth of a bucket determines the number of bits used for hashing.
– If the local depth is equal to the global depth, the directory needs to be doubled.
– If the local depth is less than the global depth, the bucket can be split without doubling the directory.
– The directory contains pointers to buckets.
– The global depth represents the number of bits used for hashing in the directory.
– The local depth represents the number of bits used for hashing in a bucket.
– After a bucket split, the local depth is incremented and used for redistributing the entries.
– The directory size is doubled when a bucket becomes full.

Example Implementation in Python
– The extendible hashing algorithm can be implemented in Python.
– The code uses the least significant bits for efficient table expansion.
– The directory is represented as a list of pages.
– Each page has a map of key-value pairs and a local depth.
– The get_page() function retrieves the page based on the hashed key.
– The put() function inserts a key-value pair into the appropriate page.

Advantages and Limitations of Extendible Hashing
– Extendible Hashing allows for efficient insertion and retrieval of data.
– It handles dynamic file sizes effectively.
– It provides a balanced distribution of keys across buckets.
– However, the depth cannot exceed the bit size of an integer.
– Doubling the directory or splitting a bucket may not allow entries to be rehashed to different buckets.

Performance and Comparison with Other Hashing Techniques
– Extendible hashing provides efficient search, insert, and delete operations.
– The directory structure allows for a balanced distribution of records.
– The number of disk accesses is minimized for most operations.
– The performance remains stable even with a large number of records.
– The space overhead of the directory structure is relatively small.
– Extendible hashing is more flexible than static hashing.
– It handles dynamic changes in the number of records effectively.
– Compared to linear hashing, extendible hashing has a simpler structure.
– Extendible hashing performs well in scenarios with frequent updates.
– Other hashing techniques may be more suitable for specific use cases.

Extendible hashing (Wikipedia)

Extendible hashing is a type of hash system which treats a hash as a bit string and uses a trie for bucket lookup. Because of the hierarchical nature of the system, re-hashing is an incremental operation (done one bucket at a time, as needed). This means that time-sensitive applications are less affected by table growth than by standard full-table rehashes.

Extendible hashing was described by Ronald Fagin in 1979. Practically all modern filesystems use either extendible hashing or B-trees. In particular, the Global File System, ZFS, and the SpadFS filesystem use extendible hashing.

« Back to Glossary Index

Submit your RFP

We can't wait to read about your project. Use the form below to submit your RFP!

Gabrielle Buff
Gabrielle Buff

Just left us a 5 star review

Great customer service and was able to walk us through the various options available to us in a way that made sense. Would definitely recommend!

Stoute Web Solutions has been a valuable resource for our business. Their attention to detail, expertise, and willingness to help at a moment's notice make them an essential support system for us.

Paul and the team are very professional, courteous, and efficient. They always respond immediately even to my minute concerns. Also, their SEO consultation is superb. These are good people!

Paul Stoute & his team are top notch! You will not find a more honest, hard working group whose focus is the success of your business. If you’re ready to work with the best to create the best for your business, go Stoute Web Solutions; you’ll definitely be glad you did!

Wonderful people that understand our needs and make it happen!

Paul is the absolute best! Always there with solutions in high pressure situations. A steady hand; always there when needed; I would recommend Paul to anyone!

Vince Fogliani

The team over at Stoute web solutions set my business up with a fantastic new website, could not be happier

Steve Sacre

If You are looking for Website design & creativity look no further. Paul & his team are the epitome of excellence.Don't take my word just refer to my website "stevestours.net"that Stoute Web Solutions created.This should convince anyone that You have finally found Your perfect fit

Jamie Hill

Paul and the team at Stoute Web are amazing. They are super fast to answer questions. Super easy to work with, and knows their stuff. 10,000 stars.

Paul and the team from Stoute Web solutions are awesome to work with. They're super intuitive on what best suits your needs and the end product is even better. We will be using them exclusively for our web design and hosting.

Dean Eardley

Beautifully functional websites from professional, knowledgeable team.

Along with hosting most of my url's Paul's business has helped me with website development, graphic design and even a really cool back end database app! I highly recommend him as your 360 solution to making your business more visible in today's social media driven marketplace.

I hate dealing with domain/site hosts. After terrible service for over a decade from Dreamhost, I was desperate to find a new one. I was lucky enough to win...

Paul Stoute has been extremely helpful in helping me choose the best package to suite my needs. Any time I had a technical issue he was there to help me through it. Superb customer service at a great value. I would recommend his services to anyone that wants a hassle free and quality experience for their website needs.

Paul is the BEST! I am a current customer and happy to say he has never let me down. Always responds quickly and if he cant fix the issue right away, if available, he provides you a temporary work around while researching the correct fix! Thanks for being an honest and great company!!

Paul Stoute is absolutely wonderful. Paul always responds to my calls and emails right away. He is truly the backbone of my business. From my fantastic website to popping right up on Google when people search for me and designing my business cards, Paul has been there every step of the way. I would recommend this company to anyone.

I can't say enough great things about Green Tie Hosting. Paul was wonderful in helping me get my website up and running quickly. I have stayed with Green...