Answers.Body: <p>Surely you can implement such algorithm, since you already know the details. Iterative steps:</p>
  <ol>
  <li>Determine possible numbers in all empty squares</li>
  <li>Find the square with the least number of possible numbers</li>
  <li>Does this square have an unique solution? If yes, set it and GOTO 1</li>
  <li>Else apply the backtracking logic and guess a number, GOTO 1</li>
  </ol>
  <p>People who are good with sudokus know various advanced tricks, which I have seen on Youtube at <a href="https://www.youtube.com/c/CrackingTheCryptic" rel="nofollow noreferrer">Cracking The Cryptic</a> channel. He has even tested a sudoku's difficulty on a specific solver site, in which you can choose that which advanced techniques you want it to apply. In my understanding the site's algorithm does not use any backtracking, and it might conclude that it cannot solve the problem with given techniques. Sadly I don't remember this website's name, or the video in which it was used.</p>
  <p>Arguably this is more of a Computer Science answer than AI, but then again for example chess engines can be approached from either direction.</p>
  <p>Edit: I found the <a href="https://youtu.be/Ui1hrp7rovw?t=163" rel="nofollow noreferrer">video</a> and thus <a href="https://www.sudokuwiki.org/sudoku.htm" rel="nofollow noreferrer">the solver</a> by  Andrew Stuart! It has 39 distinct, human-like algorithms and describes how each of them work.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-01-06T11:41:44.130Z
Answers.LastActivityDate: 2022-01-21T17:36:24.913Z
Answers.LastEditDate: 2022-01-21T17:36:24.913Z
Answers.UserDisplayName: NikoNyrh
Body: <p>I looked a bit online for Sudoku solvers and it seems like all the answers I found involve a backtracking algorithm.</p>
  <p>However, this is not how humans (at least not me) solve Sudoku. We don't place in the first empty square, the first digit that works and go on until we solve it or hit a dead end. Usually, we try to find an empty square (which can be anywhere on the board) where there is a unique solution and then we repeat this. We might have to do some backtracking-like approach if we are out of squares with unique solutions, but that is not the main part of our approach.</p>
  <p>Are there any algorithms (even backtracking variations) that solve the sudoku in a way more similar to this approach?</p>
  
Tags: <neural-networks><algorithm-request><sudoku>
Title: Are there any algorithms (even backtracking variations) that solve the sudoku in a way more similar to this approach?
UserDisplayName: JohnDoe122
ThreadText: # Are there any algorithms (even backtracking variations) that solve the sudoku in a way more similar to this approach?
  
  (Asked by: username_0 on 2022-01-02)
  
  I looked a bit online for Sudoku solvers and it seems like all the answers I found involve a backtracking algorithm.
  
  However, this is not how humans (at least not me) solve Sudoku. We don't place in the first empty square, the first digit that works and go on until we solve it or hit a dead end. Usually, we try to find an empty square (which can be anywhere on the board) where there is a unique solution and then we repeat this. We might have to do some backtracking-like approach if we are out of squares with unique solutions, but that is not the main part of our approach.
  
  Are there any algorithms (even backtracking variations) that solve the sudoku in a way more similar to this approach?
  
  **Tags:** neural-networks, algorithm-request, sudoku
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-01-06. Score: 2
  
  Surely you can implement such algorithm, since you already know the details. Iterative steps:
  
  1. Determine possible numbers in all empty squares
  2. Find the square with the least number of possible numbers
  3. Does this square have an unique solution? If yes, set it and GOTO 1
  4. Else apply the backtracking logic and guess a number, GOTO 1
  
  People who are good with sudokus know various advanced tricks, which I have seen on Youtube at [Cracking The Cryptic](https://www.youtube.com/c/CrackingTheCryptic) channel. He has even tested a sudoku's difficulty on a specific solver site, in which you can choose that which advanced techniques you want it to apply. In my understanding the site's algorithm does not use any backtracking, and it might conclude that it cannot solve the problem with given techniques. Sadly I don't remember this website's name, or the video in which it was used.
  
  Arguably this is more of a Computer Science answer than AI, but then again for example chess engines can be approached from either direction.
  
  Edit: I found the [video](https://youtu.be/Ui1hrp7rovw?t=163) and thus [the solver](https://www.sudokuwiki.org/sudoku.htm) by Andrew Stuart! It has 39 distinct, human-like algorithms and describes how each of them work.
  
  
  ---
  
  