Chat

XY-Wing: Advanced Solving Sudoku Technique


XY-Wing by createclassicsudoku.com , and humage.com , and hodoku

XY-Wing:

XY-Wing is a method used to refine the candiates of a square with multiple candiates. Three empty squares are constrained in such a way that we can infer that some empty squares surely cannot be one certain number.

Below is an example of using XY-Wing-RowBox(one case of XY-Wing in our Sudoku solver, explained after the example) to refine the candidate values of R3C6 (the highlighted square that is not circled in red). Blank/Empty Squares are marked with candidate values in red.

For R3C5,

Either way, either R3C9 or R1C4 will be number 1.

Therefore, R3C6 who is at the same row as R3C9 and at the same box as R1C4 cannot be number 1. And we can safely remove number 1 from R3C6's candidate values.

These above two possibilites rule out the possiblity that number 1 could be in R3C6. We can safely remove number 1 from R3C6.

Hard Sudoku on 03/25/2018

Solve Hard Sudoku on 03/25/2018 in a step-by-step style

XY-Wing explained in a more detailed way:

When one square with candidates {X, Y} is in the same row, column, or box as a second square with candidates {X, Z};

This square is also in the same row, column, or box as a third square with candidates {Y, Z};

Candidate Z can be eliminated from the squares that is both at the same row, column, or box as the second square, and at the same row, column, or box as the third square.

Where Candidates (or Candiate Numbers, or Candidate Values) of an blank/empty square is a list of 'possible values' or candidates for this blank/empty cell.

For convenience, we call XY-Wing-RowBox, XY-Wing-ColBox, and XY-Wing-RowCol in our Sudoku solver.

XY-Wing-RowBox:

When one square with candidates {X, Y} is in the same row as a second square with candidates {X, Z};

This square is in the same box as a third square with candidates {Y, Z};

Candidate Z can be eliminated from the squares that is both at the same row, column, or box as the second square, and at the same row, column, or box as the third square.

XY-Wing-ColBox:

When one square with candidates {X, Y} is in the same column as a second square with candidates {X, Z};

This square is in the same box as a third square with candidates {Y, Z};

Candidate Z can be eliminated from the squares that is both at the same row, column, or box as the second square, and at the same row, column, or box as the third square.

XY-Wing-RowCol:

When one square with candidates {X, Y} is in the same row as a second square with candidates {X, Z};

This square is in the same column as a third square with candidates {Y, Z};

Candidate Z can be eliminated from the squares that is both at the same row, column, or box as the second square, and at the same row, column, or box as the third square.

How to find them?

  

  

  

Solving Sudoku Methods Explained

This article answers questions: What are commonly used solving sudoku methods? What solving Sudoku methods do we use? In what sequences?

Basic Solving Sudoku Method: One Choice

a.k.a Sole Candidate, Only Candidate, or Naked Single

Basic Solving Sudoku Method: Elimination

a.k.a Hidden Single, Loner

Advanced Solving Sudoku Method: Subset2

a.k.a Pair, Naked Pair, or Naked Twins

Advanced Solving Sudoku Method: SubsetPosition2

a.k.a Hidden Pair or Hidden Twins

Last updated 3 mins ago

Advanced Solving Sudoku Method: Interaction

a.k.a Box/Row Claim or Intersection , or Locked Candidates

Solving Sudoku Methods Explained

This article answers questions: What are commonly used solving sudoku methods? What solving Sudoku methods do we use? In what sequences?