[Paper Review] An analogue of Ryser's Theorem for partial Sudoku squares
This paper establishes a necessary and sufficient condition for completing partial Sudoku squares, analogous to Ryser's Theorem for Latin squares. It introduces Hall’s Condition for partial Sudoku squares and proves that such completion is possible if and only if specific bipartite graphs derived from row and column constraints admit perfect matchings, with a polynomial-time algorithm for verification when $p \mid r$ and $q \mid s$.
In 1956 Ryser gave a necessary and sufficient condition for a partial latin rectangle to be completable to a latin square. In 1990 Hilton and Johnson showed that Ryser's condition could be reformulated in terms of Hall's Condition for partial latin squares. Thus Ryser's Theorem can be interpreted as saying that any partial latin rectangle $R$ can be completed if and only if $R$ satisfies Hall's Condition for partial latin squares. We define Hall's Condition for partial Sudoku squares and show that Hall's Condition for partial Sudoku squares gives a criterion for the completion of partial Sudoku rectangles that is both necessary and sufficient. In the particular case where $n=pq$, $p|r$, $q|s$, the result is especially simple, as we show that any $r imes s$ partial $(p,q)$-Sudoku rectangle can be completed (no further condition being necessary).
Motivation & Objective
- To extend Ryser’s Theorem—originally for Latin squares—to the context of partial Sudoku squares.
- To define a combinatorial condition analogous to Hall’s Condition for partial Latin squares, now adapted for Sudoku constraints.
- To establish a necessary and sufficient condition for the completion of any $r \times s$ partial $(p,q)$-Sudoku rectangle to a full $n \times n$ $(p,q)$-Sudoku square.
- To analyze the computational complexity of the completion problem under the new condition, particularly in the case where $p \mid r$ and $q \mid s$.
Proposed method
- Define bipartite graphs $S_\alpha$ and $B_\beta$ based on missing symbols in rows and columns of a partial $(p,q)$-Sudoku rectangle.
- Construct $S_\alpha$ and $B\beta$ by replicating row and column vertices according to the size of incomplete blocks, preserving adjacency to symbol vertices.
- Formulate the completion condition as the existence of perfect matchings in each $S_\alpha$ and $B\beta$ graph.
- Use Hall’s Theorem on bipartite graphs to translate matching existence into a system of inequalities.
- Demonstrate that when $p \mid r$ and $q \mid s$, no additional condition is needed—any such partial rectangle is completable.
- Leverage the fact that maximum bipartite matching can be computed in $O(n^3)$ time, leading to a polynomial-time algorithm for completion verification.
Experimental results
Research questions
- RQ1Can Ryser’s Theorem for Latin squares be generalized to partial Sudoku squares?
- RQ2What combinatorial condition ensures that a partial $(p,q)$-Sudoku rectangle can be completed to a full $(p,q)$-Sudoku square?
- RQ3Is there a characterization of completability that reduces to a known matching condition in bipartite graphs?
- RQ4Does the completion problem for partial Sudoku squares remain NP-complete under Hall’s Condition, or does it become polynomial-time solvable?
- RQ5Under what conditions does a partial Sudoku rectangle admit a completion without further constraints?
Key findings
- A necessary and sufficient condition for completing a partial $r \times s$ $(p,q)$-Sudoku rectangle to a full $n \times n$ $(p,q)$-Sudoku square is the existence of perfect matchings in a family of bipartite graphs $S_\alpha$ and $B_\beta$.
- When $p \mid r$ and $q \mid s$, any $r \times s$ partial $(p,q)$-Sudoku rectangle can be completed without additional constraints, as stated in Theorem 2.
- The completion problem for partial Sudoku squares can be decided in polynomial time, since checking perfect matchings in $O(n)$ bipartite graphs is feasible in $O(n^3)$ time per graph.
- The condition for completion is equivalent to Hall’s Condition for partial Sudoku squares, generalizing the Hall-type criterion from Latin squares.
- The authors show that the decision problem for completion under Hall’s Condition for Sudoku squares is in P, unlike the general case which is NP-complete.
- The paper leaves open whether the problem remains NP-complete when only filled or empty cells are allowed, though it is conjectured to be so.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.