Шта је правило 45 и како се примењује овде?
Последње ажурирано
Правило 45 је најпознатије из Killer Sudoku, али има чисту и недовољно коришћену примену у Сендвич Судокуу: сваки вањски наговештај претвара у други, комплементарни наговештај о ћелијама које сендвич не покрива.
Зашто свака линија збира 45
Сваки ред и колона садрже цифре 1 до 9 тачно једном, и 1+2+3+4+5+6+7+8+9 = 45. Ово је фиксна аритметичка чињеница сваке валидне Sudoku линије. Поделите било коју линију на три дела - 1 и 9 (сумирајући до 10), сендвичована поља (сумирајући до трага), и све изван сендвича - И три дела морају објаснити пуни 45.
Трик с Вањском Суме
Rearranging gives: outside digits = 45 − 10 − clue = 35 − clue. A row with clue 12 has outside digits summing to 23; a row with clue 30 has outside digits summing to just 5. The outside region is a 'shadow sandwich' - A set of distinct digits from 2-8 with a known total - And it obeys exactly the same combination logic as the sandwich itself. When the clue is large, the outside sum is small and often more constraining than the inside: an outside total of 5 across two cells must be {2,3}, immediately fixing two cells at the edges of the line.
Користећи Обе Стране Заједно
Work whichever side of the line is tighter. With clue 30, either the sandwich is five cells of {4,5,6,7,8} with {2,3} outside, or six cells with the single digit 5 outside - Two crisp scenarios you can test against the boxes. The 45 rule also provides a permanent error check: at any point, placed digits inside the sandwich may never exceed the clue, and placed digits outside may never exceed 35 − clue. If either total is breached, a placement upstream is wrong.