<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://sudopedia.sudocue.net/index.php?action=history&amp;feed=atom&amp;title=Backtrack</id>
	<title>Backtrack - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://sudopedia.sudocue.net/index.php?action=history&amp;feed=atom&amp;title=Backtrack"/>
	<link rel="alternate" type="text/html" href="http://sudopedia.sudocue.net/index.php?title=Backtrack&amp;action=history"/>
	<updated>2026-04-18T23:22:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.2</generator>
	<entry>
		<id>http://sudopedia.sudocue.net/index.php?title=Backtrack&amp;diff=212&amp;oldid=prev</id>
		<title>127.0.0.1: Created page with &quot;Return to an earlier position in the solving path, after a contradiction or a dead end has been reached.   Backtracking is mainly used by Sudoku computer programs to deter...&quot;</title>
		<link rel="alternate" type="text/html" href="http://sudopedia.sudocue.net/index.php?title=Backtrack&amp;diff=212&amp;oldid=prev"/>
		<updated>2021-10-25T08:17:27Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Return to an earlier position in the solving path, after a &lt;a href=&quot;/index.php?title=Contradiction&quot; title=&quot;Contradiction&quot;&gt;contradiction&lt;/a&gt; or a dead end has been reached.   Backtracking is mainly used by Sudoku computer programs to deter...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Return to an earlier position in the solving path, after a [[contradiction]] or a dead end has been reached. &lt;br /&gt;
&lt;br /&gt;
Backtracking is mainly used by Sudoku computer programs to determine the validity of a Sudoku by establishing that it has a unique [[solution]].&lt;br /&gt;
&lt;br /&gt;
With the aid of computer programs, human players can also backtrack using the &amp;#039;&amp;#039;&amp;#039;Undo&amp;#039;&amp;#039;&amp;#039; functionality. Players only need to backtrack after a [[guess]] or when using [[Trial &amp;amp; Error]].&lt;br /&gt;
&lt;br /&gt;
A popular metaphor for backtracking is &amp;#039;&amp;#039;&amp;#039;[[Ariadne&amp;#039;s Thread]]&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
When using the term &amp;#039;&amp;#039;&amp;#039;backtracking&amp;#039;&amp;#039;&amp;#039;, there is a very strong implication that part of the algorithm being used is a depth first search. Think of the intermediate places where guesses (decisions) have to be made as branches of a tree. A depth first search starts at the trunk and follows the branches through the tree to each leaf (at which point there are no more decisions to be made). So for a Sudoku program the last guess will either be to solve the puzzle or to reach a point where there is an inconsistency. If an inconsistency is reached, the program &amp;#039;&amp;#039;&amp;#039;backtracks&amp;#039;&amp;#039;&amp;#039; to the last decision and chooses another path. On average you&amp;#039;d have to explore half the leaves on the tree to find the solution. Thus backtracking as an algorithmic technique is NP-complete. Being NP-complete is not a particular problem for Sudoku puzzles because the problem has a relatively small sample space. So a brute force computer program is actually reasonably quick. &lt;br /&gt;
&lt;br /&gt;
== External links ==&lt;br /&gt;
&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Breadth-first_search Breadth-first search] at Wikipedia®&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Depth-first_search Depth-first search] at Wikipedia®&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Np-complete NP-complete] at Wikipedia®&lt;br /&gt;
&lt;br /&gt;
[[Category:Solving Techniques]]&lt;/div&gt;</summary>
		<author><name>127.0.0.1</name></author>
	</entry>
</feed>