Hash function

Hash functions are often used to map a range of values to a smaller range for example: you have bunch of pointers/integers/keys and you want to put them in a sm...