Sudoku Algorithm 4

Naked Single

Naked Single

"Naked Single" is "Candidate digit is one cell is fixed".
This is also the rule of numerical placement of Sudoku.
In the example on the left, set X=4.


Example

Naked Single

If the candidate digit of the cell is only one, it is fixed to that digit.

.3217.6.88.4..9.7.75.......6....84572.......6.7.4.....3..5...84.2.9..5..4..61.7.2

Naked Single C# program

public class SimpleSingleGen: AnalyzerBaseV2{
    public bool NakedSingle( ){
        bool  SolFond=false;
        foreach( UCell P in pBDL.Where(p=>p.FreeBC==1) ){
            SolFond=true;
            P.FixedNo=P.FreeB.BitToNum()+1;      
            if(!MltSolOn)  goto LFond;
        }

        LFond:
        if(SolFond){
            .
            . (Solution report code)
            .
			return true;
        }
        return false;
    }
}