Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 22nd, 2012  |  syntax: None  |  size: 0.31 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. What would be a uniquely identifying hashCode for a point in a N-D Plane?
  2. hashcode = P1
  3. foreach component in structure
  4.     hashcode = hashcode * P2
  5.     hashcode = hashcode + hashcode-of-component
  6.        
  7. hashcode = P1
  8. count from 1 to N
  9.     hashcode = hashcode * P2
  10.     hashcode = hashcode + component[counting-index]