{"id":482,"date":"2006-09-05T21:08:26","date_gmt":"2006-09-05T18:08:26","guid":{"rendered":"http:\/\/www.all-things-me.net\/blog\/archives\/2006\/09\/05\/defeating-sudoku-in-five-simple-steps"},"modified":"2007-10-21T15:04:35","modified_gmt":"2007-10-21T12:04:35","slug":"defeating-sudoku","status":"publish","type":"post","link":"https:\/\/www.all-things-me.net\/blog\/2006\/09\/05\/defeating-sudoku","title":{"rendered":"Defeating Sudoku in five simple steps"},"content":{"rendered":"<p>I, like many others, have taken a liking to <a href=\"http:\/\/en.wikipedia.org\/wiki\/Sudoku\">Sudoku puzzles<\/a>. I started with some simple scanning techniques (examples 1-3) which worked with the easier puzzles. Angus Johnson&#8217;s <a href=\"http:\/\/angusj.com\/sudoku\/\">Simple Sudoku<\/a> program has a delightful Help containing many strategies to solving a puzzle. I haven&#8217;t got the hang of (or memorised) the most advanced techniques but recently I finished even the &#8220;Ultimate Challenges&#8221; in two Sudoku books (about 200 puzzles each) with the following strategies that I&#8217;ve found the most effective &#8212; and enough.<\/p>\n<p>1. I always start a puzzle by looking at the smallest area possible which is the 3&#215;3 square. I check the missing numbers starting from 1 and see if I can put a number anywhere.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.all-things-me.net\/blog\/wp-content\/uploads\/2006\/09\/sudoku1.gif\" alt=\"Sudoku example 1\" class=\"image\" \/><\/p>\n<p>2. After I&#8217;ve gone through each of the 9 small squares so many times that I can&#8217;t add numbers anymore, I check each horizontal row.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.all-things-me.net\/blog\/wp-content\/uploads\/2006\/09\/sudoku2.gif\" alt=\"Sudoku example 2\" class=\"image\" \/><\/p>\n<p>3. After horizontal rows don&#8217;t help, I check each vertical row.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.all-things-me.net\/blog\/wp-content\/uploads\/2006\/09\/sudoku3.gif\" alt=\"Sudoku example 3\" class=\"image\" \/><\/p>\n<p>4. I repeat steps 1-3 until I can&#8217;t add any numbers. Then I write down the &#8220;candidates&#8221; in each square. Often this reveals new numbers to add when a square has only one possible candidate.<\/p>\n<p>When the candidates are written down it&#8217;s easy to see pairs or small groups so I can strike out candidates in other squares. In the example there are three squares that have to contain the numbers 1,4, and 5 so I can discard them in the square that is outside the group. I do this scan on horizontal and vertical rows, too.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.all-things-me.net\/blog\/wp-content\/uploads\/2006\/09\/sudoku4.gif\" alt=\"Sudoku example 4\" class=\"image\" \/><\/p>\n<p>5. With the candidates in view it&#8217;s easy to find numbers to strike out when I go through the rows horizontally and vertically and notice that a number has to be contained in one of the 3&#215;3 squares. Then I can strike out the number in the other 3&#215;3 squares on the same row. Also, if a number is restricted to a 3&#215;3 square <em>and<\/em> a vertical or horizontal row, candidates can be struck out within the 3&#215;3 square.<\/p>\n<p>In the example numbers 3, 6, and 9 have to be found on the first row so they can be struck out elsewhere in the second 3&#215;3 square.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.all-things-me.net\/blog\/wp-content\/uploads\/2006\/09\/sudoku5.gif\" alt=\"Sudoku example 5\" class=\"image\" \/><\/p>\n<p>Before I learned the strategies 4 and 5 I had trouble finishing the tougher puzzles. I suppose I had thought of checking the pairs but not the larger groups.<\/p>\n<p>Perhaps next I should take on <em>making<\/em> the puzzles because I tried that on <a href=\"http:\/\/angusj.com\/sudoku\/\">Simple Sudoku<\/a> and couldn&#8217;t get a single one pass the check (= only one solution).<\/p>\n<p><span style=\"font-size: smaller;\">Disclaimer: The examples are not trying to be realistic situations or solveable puzzles, they&#8217;re just diagrams.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I, like many others, have taken a liking to Sudoku puzzles. I started with some simple scanning techniques (examples 1-3) which worked with the easier puzzles. Angus Johnson&#8217;s Simple Sudoku program has a delightful Help containing many strategies to solving a puzzle. I haven&#8217;t got the hang of (or memorised) the most advanced techniques but [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,22],"tags":[],"class_list":["post-482","post","type-post","status-publish","format-standard","hentry","category-games","category-rants"],"_links":{"self":[{"href":"https:\/\/www.all-things-me.net\/blog\/wp-json\/wp\/v2\/posts\/482","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.all-things-me.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.all-things-me.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.all-things-me.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.all-things-me.net\/blog\/wp-json\/wp\/v2\/comments?post=482"}],"version-history":[{"count":0,"href":"https:\/\/www.all-things-me.net\/blog\/wp-json\/wp\/v2\/posts\/482\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.all-things-me.net\/blog\/wp-json\/wp\/v2\/media?parent=482"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.all-things-me.net\/blog\/wp-json\/wp\/v2\/categories?post=482"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.all-things-me.net\/blog\/wp-json\/wp\/v2\/tags?post=482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}