Lattice model for geometric hashing in many-particle systems