Hi all,
Am having some trouble understanding hash tables/collision handling with random access files. I understand how to hash a key to get the record number in the file and then how to get a position in the file, so I can read/write to random access files assuming there are no collisions.
Now when they share the same record number in the file is where I have problems, I've read a lot online about hash tables but still can't grasp it completely
I'm trying to implement it with Bucket Addressing with size of 5. There are 13 records in the file and am using Visual Basic.
So far I've gotten as far as declaring a variable of type hashfile and I have an array of records where the record has the key value in it...
Can anyone maybe explain this in a nice easy to understand way
Thanx in advance
S1ght
Am having some trouble understanding hash tables/collision handling with random access files. I understand how to hash a key to get the record number in the file and then how to get a position in the file, so I can read/write to random access files assuming there are no collisions.
Now when they share the same record number in the file is where I have problems, I've read a lot online about hash tables but still can't grasp it completely
So far I've gotten as far as declaring a variable of type hashfile and I have an array of records where the record has the key value in it...
Can anyone maybe explain this in a nice easy to understand way
Thanx in advance
S1ght