Repository logo
  • English
  • العربية
  • বাংলা
  • Català
  • Čeština
  • Deutsch
  • Ελληνικά
  • Español
  • Suomi
  • Français
  • Gàidhlig
  • हिंदी
  • Magyar
  • Italiano
  • Қазақ
  • Latviešu
  • Nederlands
  • Polski
  • Português
  • Português do Brasil
  • Srpski (lat)
  • Српски
  • Svenska
  • Türkçe
  • Yкраї́нська
  • Tiếng Việt
Log In
New user? Click here to register.Have you forgotten your password?
  1. Home
  2. IIT Gandhinagar
  3. Computer Science and Engineering
  4. CSE Publications
  5. Permutation match puzzles: how young Tanvi learned about computational complexity
 
  • Details

Permutation match puzzles: how young Tanvi learned about computational complexity

Source
arXiv
ISSN
2331-8422
Date Issued
2026-03-01
Author(s)
Gajjar, Kshitij
Misra, Neeldhara  
DOI
10.48550/arXiv.2603.08110
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 n \times n 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 n^2 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 O(n) 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 rather than simple orderings, and establish that finding minimal repairs in this setting is NP-complete by a reduction from feedback arc set.
URI
https://repository.iitgn.ac.in/handle/IITG2025/34878
Subjects
Sorting match puzzles
Permutation match puzzles
Grid puzzles
Constraint satisfaction
Directed acyclic graphs
Hook length formula
Standard Young tableaux
NP-completeness
Feedback arc set
IITGN Knowledge Repository Developed and Managed by Library

Built with DSpace-CRIS software - Extension maintained and optimized by 4Science

  • Privacy policy
  • End User Agreement
  • Send Feedback
Repository logo COAR Notify