Recently, I was given homework in which they asked if there is a list of keys, whether it is possible to make a hash function that does not have any collisions. After some research, I found out that given a pre-ordered list of keys, perfect hash functions are possible.
However, I'm not quite sure what to say next. Can someone give me some tips on how perfect hash functions are, or what exactly gives a predefined list for a hash function creator that allows an excellent function?
Thanks for any help.
source share