Deciding Foot-sortability and Minimal 2-bounded Non-foot-sortable Sock Orderings
Combinatorics
2023-12-25 v1 Data Structures and Algorithms
Abstract
A sock ordering is a sequence of socks with different colors. A sock ordering is foot-sortable if the sequence of socks can be sorted by a stack so that socks with the same color form a contiguous block. The problem of deciding whether a given sock ordering is foot-sortable was first considered by Defant and Kravitz, who resolved the case for alignment-free 2-uniform sock orderings. In this paper, we resolve the problem in a more general setting, where each color appears in the sock ordering at most twice. A key component of the argument is a fast algorithm that determines the foot-sortability of a sock ordering of length in time , which is also an interesting result on its own.
Keywords
Cite
@article{arxiv.2312.14397,
title = {Deciding Foot-sortability and Minimal 2-bounded Non-foot-sortable Sock Orderings},
author = {Hung-Hsun Hans Yu},
journal= {arXiv preprint arXiv:2312.14397},
year = {2023}
}
Comments
19 pages