Permutation Match Puzzles: How Young Tanvi Learned About Computational Complexity
Kshitij Gajjar, Neeldhara Misra

TL;DR
This paper introduces permutation match puzzles, characterizes their solvability through an acyclic constraint graph, provides counting formulas for solutions, and proves NP-completeness for a generalized version with permutation constraints.
Contribution
It offers a complete characterization of solvable puzzles, a hook length formula for counting solutions, and complexity results for generalized puzzles.
Findings
Puzzles are solvable iff their constraint graph is acyclic.
Number of solutions follows a hook length formula.
Finding minimal repairs with arbitrary permutations is NP-complete.
Abstract
We study a family of sorting match puzzles on grids, which we call permutation match puzzles. In this puzzle, each row and column of a grid is labeled with an ordering constraint -- ascending (A) or descending (D) -- and the goal is to fill the grid with the numbers 1 through such that each row and column respects its constraint. We provide a complete characterization of solvable puzzles: a puzzle admits a solution if and only if its associated constraint graph is acyclic, which translates to a simple "at most one switch" condition on the A/D labels. When solutions exist, we show that their count is given by a hook length formula. For unsolvable puzzles, we present an algorithm to compute the minimum number of label flips required to reach a solvable configuration. Finally, we consider a generalization where rows and columns may specify arbitrary permutations…
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
TopicsGenome Rearrangement Algorithms · Advanced Combinatorial Mathematics · Advanced Graph Theory Research
