Jerry's Blog  1.4.211
mi propio
next article: 4 Sudoku Challenges
Unavoidable Rectangle
When the Unique Rectangle technique is unavoidable
Fri June 19 2020  9:24pmSudoku

A recent round of minor enhancements and corrections has made the CyberJerry Sudoku Analyzer capable of analyzing increasingly tough Sudokus. Two results: the "New Puzzle" control now offers a "Genius" level, and the "Hint" feature may offer extremely complex hints, containing many interdependent sub-steps of a variety of advanced strategies. The added focus on complex Sudokus has had another unforeseen result: the possibility of encountering what I call the "Unavoidable Avoidable Rectangle". (Not being able to find any mention of the phenomenon in any other website, I claim the right to assign this name to it.) Let me explain:

At any given point in working a valid Sudoku puzzle, there may exist only one way to solve one unsolved cell, and so proceed one step closer to a full solution. But many times there may be two, three, or more ways to solve the same cell or different cell(s). In such a situation, the Sudoku Analyzer will generally prefer a simple hint over a more complex one. But, whether simple or complex, the Analyzer always offers just one hint, randomly selecting from any number of possible hints at the given point. If you press the "Hint" button repeatedly at the same point, you may be randomly offered a wide variety of ways to proceed. To give you all possible hints at one time would be confusing, and would also be a departure from the design decision to proceed, as much as possible, as a human brain would proceed.

One of the advanced strategies is called the "Unique Rectangle" technique. A few Sudoku experts call it "Avoidable Rectangle", since it is based upon the "deadly pattern" that cannot exist in a valid single-solution Sudoku.

Ironically, in some complex Sudokus, this technique may be unavoidable. That is, at a given point in a given Sudoku, there may exist several ways to proceed. If one way involves the Unique Rectangle strategy, and you don't notice it, or choose to follow a different way, you may solve a different cell, inadvertantly cause the deadly pattern to disappear, and, with it, the Unique Rectangle step. In some cases, this means that subsequent hints may be much more difficult than if the Unique Rectangle technique had been used. In some rare cases, the Sudoku may become impossible to solve analytically without backtracking to the missed Unique Rectangle hint step.

The Sudoku grid shown above illustrates this. Navigate to that Sudoku and click the "Hint" button. The Analyzer will offer you a hint consisting of 3 parts. The third part is a Unique Rectangle, case C, based upon avoiding the 'deadly pattern' in rectangle b2-b3-i2-i3. If you follow this hint, you will solve for cells h3 or i5, either one of which will make the rest of this Sudoku easy to solve.

But there is an alternative, at first sight easier. Instead of the Unique Rectangle, you could notice the Naked Pair in cells b2-b3 and use that to solve cell a2. Now you ask for another hint. This time there is only one hint available, a two-part hint involving a different Unique Rectangle (case A), at a1-a6-b1-b6, allowing you to solve cell a1. Next another hint with a case A at b2-b3-i2-i3, solving cells i2 or b3.

At this point, the original deadly pattern at b2-b3-i2-i3 has disappeared, and you will have to labor through some very complex steps to solve cells h3 or i5, which have turned out to be key cells in solving the whole Sudoku.

In this respect, your human brain may have a distinct advantage over the Sudoku Analyzer, which doesn't remember past hint steps. By design, every point in the Sudoku is treated as a fresh start, calling for its own set of hints. Nor does the Analyzer bother much with hint steps that have not been randomly selected, as mentioned above. I may try to make the Sudoku Analyzer smarter in this regard. But in the meantime, be careful about overlooking a Unique Rectangle hint. It may end up being unavoidable and essential to reaching a full solution.

  
rev. Thu Jun 25  7:40pm
previous article: Sudoku Challenge (2)

0 comments:


 
The lack of pleasure, when young, is pain.
The lack of pain, when old, is pleasure.

Articles
All  
Faith/Philosophy
Sudoku
Computer
Misc.
11/24/20Ode to Sudoku
10/7/20Version 3
8/23/20Successful Challenger 2
8/5/20Ordinariate
7/30/20Amateur Priests 1
7/23/20Doctrines, Canons, Buildings 1
7/6/204 Sudoku Challenges
6/19/20Unavoidable Rectangle
6/1/20Sudoku Challenge (2) 1
4/7/20Fear of Death 3
2/14/20Heads Up
1/11/20Billionth Birthsecond 1
12/31/19Versus-2 1
12/18/19Versus
12/3/19Copyright/left 2
10/24/19DePyper 1
7/19/19Schizophrenia 4
7/11/19New Math 1
6/2/19Times and Seasons 4
11/29/18Data Security 1
10/2/18Until 7
9/15/18Empty Chair 11
8/28/18Riddle me this 6
8/1/18Sudoku Challenge Answered 3
7/4/18Unrest in Nicaragua 7
5/9/18Some Specifics
4/20/18Crisis of Authority 4
3/17/18Theocracy 2
3/1/18Self abnegation 1
12/14/17Sudoku Challenge
12/2/17Blog End
11/16/17Meta Blog 6
Copyright (c) 2017-2020 Gerald DePyper - Jinotega, Nicaragua, C.A.
rev. 2020.11.24