Hi,
I am trying to understand Hashing function. I am reading a book which says"
how can design a function h that allows the compiler to immediately access the position associated with each variable? All the letters of the variables name can be added together and the sum can be used as an index. in this case, the table needs 3,782 cells ( for a variable K made out of 31 letters “z,” h(K) = 31 . 122 = 3,782).
I cant undertand what is meant by 122 here:.
Some body please guide me.
Zulfi.
I am trying to understand Hashing function. I am reading a book which says"
how can design a function h that allows the compiler to immediately access the position associated with each variable? All the letters of the variables name can be added together and the sum can be used as an index. in this case, the table needs 3,782 cells ( for a variable K made out of 31 letters “z,” h(K) = 31 . 122 = 3,782).
I cant undertand what is meant by 122 here:.
Some body please guide me.
Zulfi.