The general algorithm involves determining how many particles are within a distance of  and  away from a particle.
The general algorithm involves determining the number of particles within a specific distance from another particle.