Hi friends,
I am Sumit
problem in C Language
I have created a program to store int data by the HASH() [hash
function]
my hash function for generate hashkey:
int HASH(data)
{
return data%10;
}
now i want to make same program but using DYNAMIC HASHING, I know
about the
dynamic but when i made static hashing
struct hash_node
{
int data;
struct hash_node *next_node;
};
struct hash_table
{
int element;
struct hash_node *next_table;
};
Posi Hash NODES Node
-tion -table TABLE data
_________ _________ _________
_________ _________
[0] |_________| |____|____| ---|____|____| --- |____|____|
---|____|____|
^-------0x601010
_________ _________ _________
_________
[1] |_________| |____|____| --- |____|____| --- |____|
____|
. ^-------0x601030