<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Latent Mirror — Sudoku Search Lab</title><description>Sudoku Search Lab: its artifact page, and the posts and reflections that belong to it.</description><link>https://latentmirror.com/</link><language>en-ca</language><copyright>© 2026 Dan Peterson. CC BY-SA 4.0.</copyright><item><title>Sudoku Search Lab</title><link>https://latentmirror.com/artifacts/sudoku-search-lab/</link><guid isPermaLink="true">https://latentmirror.com/artifacts/sudoku-search-lab/</guid><description>A Sudoku solver you can watch think: a demonstration, an explanation and a test of P vs NP, all in one side quest.</description><pubDate>Mon, 28 Sep 2026 20:00:00 -0400</pubDate><content:encoded>&lt;p&gt;&lt;img src=&quot;https://latentmirror.com/_astro/sudoku-search-lab.DAT7b6W-_15ltv.webp&quot; alt=&quot;A solved 9 by 9 Sudoku grid, dark theme, cells shaded teal by how often the search touched them, with the MRV strategy selected and node and backtrack counts in the side panel.&quot; /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://claude.ai/artifact/1Lfy85WMfmxkPXS3htcfAU&quot;&gt;Open it on claude.ai&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Sudoku Search Lab needed to be three things at once: a demonstration, an explanation and a test.
It is also yet another side quest (OpenAI has
&lt;a href=&quot;https://techcrunch.com/2026/04/17/kevin-weil-and-bill-peebles-exit-openai-as-company-continues-to-shed-side-quests/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;sworn off those&lt;/a&gt;;
I have not).&lt;/p&gt;
&lt;p&gt;It started with P vs NP. I remember reading about the
&lt;a href=&quot;https://www.claymath.org/millennium/p-vs-np/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Millennium Prize Problems&lt;/a&gt; and dreaming of solving
one. Keith Devlin’s &lt;em&gt;The Millennium Problems&lt;/em&gt; (2002) predicted that P vs NP would fall to an
“amateur” (someone without a mathematics PhD)
(&lt;a href=&quot;https://www.keranews.org/2003-01-17/wanted-math-solutions&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;NPR, 2003&lt;/a&gt;), because the problem is
easy to explain and understand, yet hard to solve. That is more or less what the problem is about:
some answers are hard to find (sometimes impossibly so) but easy to check. Think of the test in
&lt;em&gt;Inception&lt;/em&gt;: you have
&lt;a href=&quot;https://en.wikiquote.org/wiki/Inception_(film)&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;two minutes to design a maze that takes one minute to solve&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;My fourth year of Computer Science was the first time I took Artificial Intelligence, and it is
still my favourite course of all time. I never took computers in high school. By 12, though, I was
sneaking my older brother’s senior homework and solving it easily. University was the first time I
was classically educated: Computer Science, plus the adjacent essentials (physics, logic, discrete
and continuous mathematics, statistics). Of all of it, nothing fascinated me more than AI, even if
we mostly focused on machine learning.&lt;/p&gt;
&lt;p&gt;My favourite part was writing programs in LISP and Prolog. It was a major paradigm shift. Instead
of writing the solution as an algorithm, you wrote programs that could find the solution; the logic
turned back on itself. I used it to build a (not-so-good) Sudoku solver. Sudoku is one of my
unplugged activities (got to keep the logic sharp!).&lt;/p&gt;
&lt;p&gt;Years later I learned that Sudoku, generalized to larger grids, is
&lt;a href=&quot;https://en.wikipedia.org/wiki/Mathematics_of_Sudoku&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;NP-complete&lt;/a&gt;. Flashback.&lt;/p&gt;
&lt;p&gt;So here it is. You can have it solve a range of difficulty levels and try a few different search
strategies. You can step through a puzzle one move at a time, or phase by phase. On hard puzzles
you can watch it struggle and backtrack, which is nothing like the way a person solves one. You
can also see its decision tree in several forms (signal, wave, graph). Fascinating stuff. A short
background on P vs NP rounds it out; that is the demonstration and the explanation.&lt;/p&gt;
&lt;p&gt;The test came later. Could I find an approach to P vs NP and apply it here? My hunch is a centaur:
a human teaching an agent skills, so that something non-deterministic (the LLM) helps write
something deterministic (the solver). Fittingly, the N in NP stands for
&lt;a href=&quot;https://en.wikipedia.org/wiki/NP_(complexity)&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;nondeterministic&lt;/a&gt;. However, a faster solver would
not settle anything on its own. Settling P vs NP takes a proof that every NP-complete problem, at
every size, can be solved in polynomial time (the question
&lt;a href=&quot;https://en.wikipedia.org/wiki/Stephen_Cook&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Stephen Cook&lt;/a&gt; posed in
&lt;a href=&quot;https://dl.acm.org/doi/10.1145/800157.805047&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;1971&lt;/a&gt;, from the University of Toronto); a clever
9×9 solver demonstrates, but it doesn’t prove. Does the hunch need a human in the loop, and how
would I even test that? Can a human and a computer together beat a computer alone at Sudoku? That
question leads straight back to the &lt;a href=&quot;/about/#thesis&quot;&gt;Latent Mirror thesis&lt;/a&gt;.&lt;/p&gt;</content:encoded></item></channel></rss>