The paper discussesin in detail the mutual action,deformation,and energy exchange of two pellets.By comparing the characteristics of completely inelastic collision,inelastic collision and completely elastic collision,the paper introduces the concept of elasticity degree k and gets relative corresponding relationship between elasticity degree and coefficient of restitution.It also presents an algorithm of the collision.