I need to understand the rules of re-pointing the pointers once the directory has doubled. Each bucket will have two times its current pointers, but my question is how to determine which of the directory entries to point to each of the buckets? Note: this is not a question of re-pointing the pointers after a bucket split in which local depth is lower than the current amount of bits used in the directory, in which the bit at local depth+1 would determine this.
Extendible Hashing Repointing Pointers After Directory Doubling
143 views Asked by Daniel Valland At
1
There are 1 answers
Related Questions in HASH
- How can py tuple implicit cast to int?
- How to properly set hashes in script-src CSP policy header?
- Algorithm for finding the largest common substring for n strings using Rabin-Karp function
- Lua: is there a need to use hash of string as a key in lua tables
- When the key values are the same, the memory limit is exceeded when making a hash join
- Short for creating an array of hashes in powershell malfunction?
- LC347: Top K Frequent Elements; final result returns an extra element in list/array
- Hashing vertices of a Graph in C
- Is there a limit on the message size for SHA3?
- When hashing an API key, should I hash the suffix / prefix as well?
- Cmake error : Configuring incomplete, errors occurred
- murmur3 hashing function in postgres
- Hashing the password if it is not hashed in django
- Order of a set in Python
- Comparing the hash of a file, containing a list of hashes of multiple files instead of each file, is it good?
Related Questions in EXTENSIBLE
- Bad number of arguments for type constructor in Isabelle/hol
- Failed build Yocto Gatesgarth "extensible SDK" (eSDK) - populate_sdk_ext fail
- TypeError: Can't define property 'x': Object is not extensible
- Finding some terminologies for doing R&D
- Haskell extensible effects: effect in another effect
- dotnet core / C# WebAPI - Controllers as Plugins
- Customised Dropdown column using sharepoint
- Why can't a Yocto SDK build a Yocto SDK?
- How can I constrain Vinyl / Composite Records?
- Modular iOS app
- App crashing while selecting check box in extensible list view in android
- Extendible Hashing Repointing Pointers After Directory Doubling
- Adding views and controllers from external dll ASP.NET MVC 5
- Making a layer modular/extensible in Java
- Extensible Hashing with unique keys
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Let's consider an example where each bucket has a size of 4 and the least significant bits are used in directory.
But before, you have to understand the following terms:
After inserting some values, suppose the state of the directory and buckets is as follows:
The hash values (indicated with an asterisk) are shown inside the buckets (instead of the data) to facilitate understanding. In practice, the data instead of the hash value is placed in a bucket.
Now let's insert an entry with hash value 20. The last two bits of the binary value of 20 is
00so20*should have been inserted in Bucket A. However since Bucket A is full, this is not possible.Doubling directory
To deal with this, we must increase global depth by 1. So the new global depth becomes 3 which means that we now have to consider the last 3 bits of a hash value to determine its location.
32*and16*are kept in the same bucket because their last 3 bits are identical. (Same reason for putting4*,12*, and20*in the same bucket.)Note
References
https://cse.buffalo.edu/~zzhao35/teaching/cse562_spring22/files/08-hashindex.pdf
https://www2.cs.sfu.ca/CourseCentral/354/lxwu/notes/chapter11.pdf