Deciding Foot-sortability and Minimal 2-bounded Non-foot-sortable Sock Orderings
Hung-Hsun Hans Yu

TL;DR
This paper investigates the problem of determining whether sock orderings can be sorted using a stack, providing a general solution for orderings with each color appearing at most twice and introducing an efficient $O(N\log N)$ algorithm.
Contribution
It extends previous work by resolving foot-sortability for more general sock orderings and presents a fast algorithm for deciding foot-sortability in this setting.
Findings
Resolved foot-sortability for sock orderings with each color appearing at most twice.
Developed an $O(N\log N)$ algorithm for deciding foot-sortability.
Extended prior results from alignment-free 2-uniform sock orderings.
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.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsBiochemical and Structural Characterization · Algorithms and Data Compression
