Skip to content

Instantly share code, notes, and snippets.

@iToto
Created November 22, 2013 01:23
Show Gist options
  • Save iToto/7593150 to your computer and use it in GitHub Desktop.
Save iToto/7593150 to your computer and use it in GitHub Desktop.
collisionDetection
int i = 0;
int newIndex;
do{
++i;
newIndex = ((this.hv1+i)*this.hv2) % table.length;
}while(table[newIndex] != null);
// Insert at newIndex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment