English

Foot-Sorting for Socks

Combinatorics 2024-07-02 v2

Abstract

If your socks come out of the laundry all mixed up, how should you sort them? We introduce and study a novel foot-sorting algorithm that uses feet to attempt to sort a sock ordering; one can view this algorithm as an analogue of Knuth's stack-sorting algorithm for set partitions. The sock orderings that can be sorted using a fixed number of feet are characterized by Klazar's notion of set partition pattern containment. We give an enumeration involving Fibonacci numbers for the 11-foot-sortable sock orderings within a naturally-arising class. We also prove that if you have socks of nn different colors, then you can always sort them using at most log2(n)\left\lceil\log_2(n)\right\rceil feet, and we use a Ramsey-theoretic argument to show that this bound is tight.

Cite

@article{arxiv.2211.02021,
  title  = {Foot-Sorting for Socks},
  author = {Colin Defant and Noah Kravitz},
  journal= {arXiv preprint arXiv:2211.02021},
  year   = {2024}
}

Comments

12 pages, 3 figures

R2 v1 2026-06-28T05:08:00.371Z