数独中的45法则是什么?
最后更新
数独中每个完成的行、列和3×3宫都恰好包含数字1到9各一次。由于1+2+3+4+5+6+7+8+9=45,任何完整的单元之和必须恰好为45——始终如此。
经典数独中的规则
在standard Sudoku中,45 rule最有用的是作为verification tool。如果你已经填满了一个row中的八个cells,第九个必须等于45减去其他八个的和。这是另一种说法,missing digit是尚未放置的数字 - 但将其框架为arithmetic可以帮助快速发现errors并锁定任何有八个confirmed digits的unit的final cell。
杀手数独中的规则
The 45 rule is the cornerstone of Killer Sudoku strategy. In Killer every row, column, and 3×3 box still sums to 45, but you work with cage sums instead of given digits. Add up all cage sums entirely contained within a unit. If their total is less than 45, the difference equals the sum of cells crossing the unit boundary - Called innies and outies.
Example: cage sums inside a row add up to 38, and one cell from another cage crosses into the row. That cell must equal 45 - 38 = 7. You know the exact digit without any other deduction.
See the full explanation in the Killer Sudoku 45 rule guide.
为什么规则不可违反
The elegance of 45 comes from its mathematical certainty. No matter how a valid Sudoku is constructed, the constraint cannot be broken. Any solution that violates it is wrong. This makes it both a solving tool and an error-checking mechanism at every stage of the puzzle.