Hash Table with Rehashing
+3
maeleh
andz_ryan
Fry
7 posters
Page 1 of 1
Hash Table with Rehashing
um...could find nowhere for this
so thought COmputers...troubleshooting.
Can some please help...how does rehashing work...i can't really find a detailed explanation in the notes, nor can really on a hash table with chaining...
I understand how the hash table works in the basic form...but not the little extras...(although i do know chaining thanks to planty).
Thanks
Fry
so thought COmputers...troubleshooting.
Can some please help...how does rehashing work...i can't really find a detailed explanation in the notes, nor can really on a hash table with chaining...
I understand how the hash table works in the basic form...but not the little extras...(although i do know chaining thanks to planty).
Thanks
Fry
Fry- Lv5 Magikoopa
- Number of posts : 146
Age : 35
Location : some room...
Registration date : 2008-05-21
Re: Hash Table with Rehashing
you know how you do some hash operation to gain the hash number of the entry. rehashing works by checking if there is already and entry in the location for the new entry, if there is, do a rehashing operation on the hash key to find its new location.
andz_ryan- Boo (Moderator)
- Number of posts : 63
Age : 35
Location : where ever you mom is
Registration date : 2008-05-20
Re: Hash Table with Rehashing
Yeh, this process then repeats until the function finds a free space
maeleh- Boo (Moderator)
- Number of posts : 50
Age : 35
Location : Cwmbram/Swansea, South Wales
Registration date : 2008-05-20
Re: Hash Table with Rehashing
and if you get to the end of the table?
Pipboy_3000- Bowser (Admin)
- Number of posts : 304
Age : 37
Location : London / Swansea
Registration date : 2008-05-17
Re: Hash Table with Rehashing
Blue screen out of it and blame the user.
b0ring- Lv5 Magikoopa
- Number of posts : 114
Age : 40
Location : Burry Port. Yeah, bitches!
Registration date : 2008-05-16
Re: Hash Table with Rehashing
ah the windows approach
Pipboy_3000- Bowser (Admin)
- Number of posts : 304
Age : 37
Location : London / Swansea
Registration date : 2008-05-17
Re: Hash Table with Rehashing
Pipboy_3000 wrote:and if you get to the end of the table?
Then re-write your hash function
maeleh- Boo (Moderator)
- Number of posts : 50
Age : 35
Location : Cwmbram/Swansea, South Wales
Registration date : 2008-05-20
Re: Hash Table with Rehashing
depending on the language implmentation, the hash table could be dynamically allocated memory, for example the hashtable in java.util, some simple methods for resolving collisions (rehashing?) are linear probing or quadratic probing I think.
Exile- Lv1 Goomba
- Number of posts : 3
Age : 34
Location : Bath
Registration date : 2008-05-20
Re: Hash Table with Rehashing
bit late there the exam is over!
Pipboy_3000- Bowser (Admin)
- Number of posts : 304
Age : 37
Location : London / Swansea
Registration date : 2008-05-17
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum