Hermit crabs line up by order of size to exchange shells [video]
vimeo.com
vimeo.com
> In a vacancy chain, a new resource unit that arrives into a population is taken by the first individual in line, who then leaves his/her old unit behind, this old unit is taken by a second individual, leaving his/her old unit behind, and so forth
Neat!
http://www.peta.org/living/companion-animals/7-reasons-never...
Fortunately, everyone leaves with some spaghetti even if it's not a 100% optimal solution.
There was an extra shell at the very beginning, so at the end it should be able to choose between 2 shells.