Hidden Techniques

Hidden techniques are important methods in Sudoku solving that identify elimination opportunities by analyzing the distribution of candidates within regions. Similar to naked sets, hidden sets are core solving techniques essential for tackling Sudoku puzzles.

Hidden Single

A Hidden Single occurs when a candidate only appears in one cell within a region. According to Sudoku rules, this number must be placed once in the region, so it must be placed in the cell.

Hidden Single Example

In the image, candidate 2 in Column A (blue region) appears only in cell A5 . According to Sudoku rules, a 2 must be placed in Column A , so A5 must be filled with 2 . This is called a Hidden Single because cell A5 contains multiple candidates, making the answer less obvious.

Hidden Set

A Hidden Set (or Hidden Subset) occurs when n candidates appear in only n cells within the same region, where 1n81 \leq n \leq 8. Since these n numbers must be placed in these n cells, all other candidates in these cells can be eliminated.

Hidden Single can be viewed as a special case of Hidden Set when n=1n = 1.

Hidden Pair

A Hidden Pair is a Hidden Set with n=2n = 2. That is, 2 candidates appear in only 2 cells.

Hidden Pair Example 1

In the image, within Block 9 (blue region), candidates 6 and 8 appear only in cells G7 and I9 . Therefore, these 2 numbers must be placed in these 2 cells, so all other candidates in G7 and I9 can be eliminated.

Hidden Pair Example 2

In the image, within Row 1 (blue region), candidates 7 and 9 appear only in cells B1 and G1 . Therefore, these 2 numbers must be placed in these 2 cells, so all other candidates in B1 and G1 can be eliminated.

Hidden Triple

A Hidden Triple is a Hidden Set with n=3n = 3. That is, 3 candidates appear in only 3 cells.

Hidden Triple Example 1

In the image, within Block 3 (blue region), candidates 1 , 5 , and 9 appear only in cells G2 , I2 , and G3 . Therefore, these 3 numbers must be placed in these 3 cells, so all other candidates in G2 , I2 , and G3 can be eliminated.

Hidden Triple Example 2

In the image, within Row 1 (blue region), candidates 3 , 7 , and 8 appear only in cells B1 , D1 , and F1 . Therefore, these 3 numbers must be placed in these 3 cells, so all other candidates in B1 , D1 , and F1 can be eliminated.

Hidden Quadruple

A Hidden Quadruple is a Hidden Set with n=4n = 4. That is, 4 candidates appear in only 4 cells.

Hidden Quadruple Example 1

In the image, within Block 7 (blue region), candidates 3 , 6 , 7 , and 9 appear only in cells A7 , B7 , A8 , and B8 . Therefore, these 4 numbers must be placed in these 4 cells, so all other candidates in A7 , B7 , A8 , and B8 can be eliminated.

Hidden Quadruple Example 2

In the image, within Block 1 (blue region), candidates 1 , 3 , 8 , and 9 appear only in cells A1 , A2 , B2 , and C2 . Therefore, these 4 numbers must be placed in these 4 cells, so all other candidates in A1 , A2 , B2 , and C2 can be eliminated.

How to Discover Hidden Sets

Key steps for identifying Hidden Sets :

  1. Observe candidate distribution : Within a region, look for candidates that appear in only a few cells
  2. Check for quantity matching : Check if there are n candidates appearing in only n cells:
    • 1 number appearing in only 1 cell → Hidden Single
    • 2 numbers appearing in only 2 cells → Hidden Pair
    • 3 numbers appearing in only 3 cells → Hidden Triple
    • 4 numbers appearing in only 4 cells → Hidden Quadruple
  3. Eliminate other candidates : Once a Hidden Set is found, remove all candidates except the Hidden Set numbers from these cells

Usage Tips

  • Search from small to large : Look for Hidden Singles first, then Hidden Pairs , and so on
  • Focus on restrictive candidates : Prioritize candidates that appear in only a few cells
  • Combine with naked techniques : Hidden Set and Naked Set techniques complement each other and can be used alternately

Complementary Relationship Between Naked and Hidden Sets

You might wonder: why have we never seen examples of naked quintuples, hidden quintuples, and similar techniques in various Sudoku examples?

This is because Naked Set and Hidden Set are complementary concepts in Sudoku, or rather, two different ways of expressing the same elimination logic. When we discover a Naked Set in a region, the other candidates naturally form a Hidden Set ; conversely, when we discover a Hidden Set , the other unfilled cells in the region also form a Naked Set , and they eliminate the same candidates.

Example 1: Naked Triple and Hidden Triple Complement

Naked Set Perspective: Naked Set Complement Example 1 - Naked

In the image, Row 5 has a Naked Triple : cell set {B5,C5,F5}\{B5, C5, F5\} contains candidate set {1,7,8}\{1, 7, 8\}.

Hidden Set Perspective: Naked Set Complement Example 1 - Hidden

In the same board state, from the hidden set perspective: Row 5 has a Hidden Triple : candidate set {3,5,6}\{3, 5, 6\} appears only in cell set {D5,G5,H5}\{D5, G5, H5\}.

You can observe that both perspectives eliminate exactly the same candidates.

Example 2: Hidden Triple and Naked Quadruple Complement

Hidden Set Perspective: Naked Set Complement Example 2 - Hidden

In the image, Row 2 has a Hidden Triple : candidate set {4,5,9}\{4, 5, 9\} appears only in cell set {A2,B2,F2}\{A2, B2, F2\}.

Naked Set Perspective: Naked Set Complement Example 2 - Naked

In the same board state, from the naked set perspective: Row 2 has a Naked Quadruple : cell set {D2,G2,H2,I2}\{D2, G2, H2, I2\} contains candidate set {1,2,3,6}\{1, 2, 3, 6\}.

You can observe that they eliminate the same candidates as well.

How to Find Complement Sets

Whether you’ve found a hidden set or a naked set, the other unfilled cells in the same region form its complement set.


Hidden Techniques Theory (Optional)

Definition of Hidden Set

A Hidden Set (the general case, including hidden singles) refers to a non-empty candidate set SS in region RR, where the candidates appear only in cell set CC within that region, and C=S|C| = |S|.

Proof of Hidden Set Technique

Proposition : In region RR, if there exists a candidate set SS that appears only in cell set CC within region RR, forming a hidden set, then:

  1. Numbers in SS must be placed in cells in CC, with each number placed exactly once
  2. Candidates in cell set CC that do not belong to SS can be eliminated

Proof :

According to the definition of Hidden Set, candidates in SS appear only in cells in CC within region RR.

According to Sudoku rules, therefore, each number in SS must be placed in some cell in CC.

Since S=C|S| = |C| and each cell must be filled with one number, each number in SS must be placed in exactly one cell in CC.

Therefore, cells in CC cannot be filled with numbers that don’t belong to SS.

Therefore, candidates in cells in CC that do not belong to SS can all be eliminated.

Complement

Proof that the Complement of a Naked Set is a Hidden Set

Proposition :

In region RR, let CUC_U be the set of unfilled cells in that region, with candidate set SUS_U, where obviously CU=SU|C_U| = |S_U|. If cell set CNCUC_N \subseteq C_U forms a naked set with candidate set SNS_N, let the remaining cell set be CH=CUCNC_H = C_U \setminus C_N, and let the remaining candidates be SH=SUSNS_H = S_U \setminus S_N, then candidate set SHS_H forms a hidden set in cell set CHC_H.

Proof :

Note that SHS_H is not the candidate set of CHC_H

According to the definition of SHS_H, candidates in SHS_H do not appear in filled cells, nor do they appear in CNC_N. Therefore, candidates in SHS_H appear only in CHC_H within region RR.

And

CH=CUCN=CUCN|C_H| = |C_U \setminus C_N| = |C_U| - |C_N|

SH=SUSN=SUSN|S_H| = |S_U \setminus S_N| = |S_U| - |S_N|

Since SU=CU|S_U| = |C_U|

Also, according to the definition of naked sets, SN=CN|S_N| = |C_N|

Therefore SH=CH|S_H| = |C_H|

Therefore, candidates in SHS_H appear only in CHC_H within region RR, and SH=CH|S_H| = |C_H|, which is the definition of a hidden set.

Therefore, candidate set SHS_H forms a hidden set in cell set CHC_H.

Proof that the Complement of a Hidden Set is a Naked Set

Proposition :

In region RR, let CUC_U be the set of all unfilled cells in that region, with candidate set SUS_U, where obviously CU=SU|C_U| = |S_U|. If candidate set SHS_H forms a hidden set in CUC_U, let the remaining cell set be CN=CUCHC_N = C_U \setminus C_H, then CNC_N is a naked set.

Proof :

Let the candidate set of CNC_N be SNS_N

According to the definition of Hidden Set, candidates in SHS_H appear only in CHC_H within region RR

Therefore these candidates do not appear in CNC_N

Therefore SHSN=S_H \cap S_N = \emptyset

Therefore SNSUSHS_N \subseteq S_U \setminus S_H

Now let’s calculate the set sizes:

CN=CUCH=CUCH|C_N| = |C_U \setminus C_H| = |C_U| - |C_H|

Since SNSUSHS_N \subseteq S_U \setminus S_H, we have:

SNSUSH=SUSH|S_N| \leq |S_U \setminus S_H| = |S_U| - |S_H|

Since SU=CU|S_U| = |C_U|

Also, according to the definition of Hidden Set, SH=CH|S_H| = |C_H|

Therefore SNSUSH=CUCH=CN|S_N| \leq |S_U| - |S_H| = |C_U| - |C_H| = |C_N|

Clearly, if SN<CN|S_N| < |C_N|, the Sudoku has no solution, so:

SN=CN|S_N| = |C_N|.

This is the definition of a naked set. Therefore CNC_N is a naked set.