title: perfect hash function
body: <p>I'm attempting to hash the values</p>
  
  <pre><code>10, 100, 32, 45, 58, 126, 3, 29, 200, 400, 0
  </code></pre>
  
  <p>I need a function that will map them to an array that has a size of 13 without causing any collisions.</p>
  
  <p>I've spent several hours thinking this over and googling and can't figure this out. I haven't come close to a viable solution.</p>
  
  <p>How would I go about finding a hash function of this sort? I've played with gperf, but I don't really understand it and I couldn't get the results I was looking for.</p>