The serpentine system, also known as snake seeding, is a method of organization used in competitions to define the seeded teams and arrange them into pools. The n ranked teams that will be involved in the tournament are distributed in m pools according to the following algorithm: