0

I am trying to simulate dynamic hashing for my database class. Here they have said to use a hashing function to generate a 32 bit binary string from a regular string. How to I do that? I have never done that before and I have searched the internet but I am not understanding anything. Here is an example - input - "Computer Science" output - "1101 0101 0100 0111 1101 0101 0100 0111"

odbhut.shei.chhele
  • 5,834
  • 16
  • 69
  • 109
  • Yes, the accepted answer in the dupe seems appropriate. – Adrian May Oct 16 '14 at 08:00
  • See the following blog article for a couple of hash functions, one from the original K&R, the other from one Bob Jenkins with fairly decent distribution: http://powerfield-software.com/?p=615 – paxdiablo Oct 16 '14 at 08:00

0 Answers0