<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.sudopedia.org/index.php?action=history&amp;feed=atom&amp;title=Backtrack</id>
	<title>Backtrack - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.sudopedia.org/index.php?action=history&amp;feed=atom&amp;title=Backtrack"/>
	<link rel="alternate" type="text/html" href="https://www.sudopedia.org/index.php?title=Backtrack&amp;action=history"/>
	<updated>2026-04-29T05:28:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://www.sudopedia.org/index.php?title=Backtrack&amp;diff=385&amp;oldid=prev</id>
		<title>Rooted: 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="https://www.sudopedia.org/index.php?title=Backtrack&amp;diff=385&amp;oldid=prev"/>
		<updated>2020-06-05T02:17:36Z</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;/wiki/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 '''Undo''' 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 '''[[Ariadne's Thread]]'''.&lt;br /&gt;
&lt;br /&gt;
When using the term '''backtracking''', 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 '''backtracks''' to the last decision and chooses another path. On average you'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>Rooted</name></author>
		
	</entry>
</feed>