ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel

How (not) to work sudoku

Updated on February 4, 2013

Let's cut to the chase: the way not to work a sudoku puzzle is to wander randomly through the grid, vainly trying to spot something, anything, that looks as if it might help.

The rub is, if you're a beginner, what else can you do? That is more or less how most of us begin--we don't know what to look for, and so may end up frustrated, perhaps even to the point of just giving up. Here are some strategies to help that early learning curve be a bit less discouraging.

First, full disclosure--as with all my "how (not) to" Hubs, I don't claim true expertise. Rather, I'm sharing the struggles I had to figure it all out, in the hopes of smoothing the way for others. (And, of course, generating a little ad revenue!)

Beginners Only: The Basic Rules Of Sudoku

If you've never attempted Sudoku before, the rules are simple.

1) Every vertical column and every horizontal row must contain one, and only one, of each of the digits from 1 to 9.

2) The 81 x 81 Sudoku grid is subdivided into 9 9 x 9 large boxes--I call them "subgrids." Each subgrid must contain one, and only one, of each of the digits from 1 to 9.

These two basic rules are illustrated below.

Basic Rules Illustrated

Probably not a workable grid--but it shows the basic rules.
Probably not a workable grid--but it shows the basic rules.

Preliminaries

You're going to learn a set of strategies I like to call "CSI"-- but before we get to that, let's organize our approach to the grid. We're going to do that by starting systematically at the top left corner.

First, we'll horizontally scan the top row of three large nine-square boxes--I'll call them "subgrids" from here on out. Once we've scanned them back and forth, we'll move on to the second row, then the third. After that, we'll follow a similar pattern, but scanning vertically: first, the leftmost three subgrids, then the center three, and lastly, the three on the right.

If this description isn't completely clear yet, don't worry; the pattern of scans is illustrated below.

Oh, and one last thing--sometimes the images for the many practice questions in this Hub don't load correctly.  They are there, I assure you!  Try reloading the Hub if this happens--perhaps after closing out any other applications you may still have running to free up some computer memory.

Scanning the grid

Horizontal scanning:  scan each third of the grid--each tier of sub-grids--back and forth, working from top row (shown here in orange) to bottom (yellow.)
Horizontal scanning: scan each third of the grid--each tier of sub-grids--back and forth, working from top row (shown here in orange) to bottom (yellow.)
Vertical scanning:  scan each third of the grid up and down, similarly to the procedure for the horizontal scan.
Vertical scanning: scan each third of the grid up and down, similarly to the procedure for the horizontal scan.

"C" is for "Cross-reference."

OK, what do I mean by "cross-reference?"

It's the first tool you normally figure out as you try to learn Sudoku: you realize that there are configurations that let you deduce that a certain square must contain a certain number.

Take a look at Practice Question 1 below. By comparing numbers from the subgrids, it's possible to deduce the position of one digit. See if you can spot it.

(Hint: look first for digits which appear more than once in the area you are scanning--in this example, 1s and 3s.)

For Best Results

One last note: working through the practice questions will give you the most benefit if you really work them!

It's always tempting to just click through the answers quickly, nodding sagely and muttering, "yes, yes, I see. . ." But taking your time, putting real effort in, and thinking through why I chose the sequence of deductions I did--and what other sequence might have been followed!--will be of much more help in actually upping your game.

To help in working through the questions, I've included a link to a blank grid you can print out and work through in pencil or pen. (Yes, I solve in pen--my philosophy is that if you aren't sure, you probably shouldn't be writing it down anyway! And yes, sometimes this leads to scratchovers.)

Practice Question 1-how many boxes can you fill?

Click thumbnail to view full-size
Click forward button to see answer.Answer (in red.)
Click forward button to see answer.
Click forward button to see answer.
Answer (in red.)
Answer (in red.)

The 1 in the left subgrid eliminates the upper three boxes of the middle subgrid; the 1 in the right subgrid does the same for the middle three boxes. Since only one of the bottom three boxes is open, that box must contain the 1.

Let's develop this grid further, so we can practice some more. See how many numbers you can fill in in the grid below, just using straight horizontal scans. As before, when you are done, click on the "forward" button to see answers.

Practice Question 2--how many with horizontal scans?

Click thumbnail to view full-size

Now see if you can add more numbers by scanning vertically.  (The numbers we added in the horizontal scans are now shown in orange.)

Practice Question 3--How many with vertical scans?

Click thumbnail to view full-size

There are just two numbers added with straight vertical scans. However, there are many more squares that can be completed by a more complete form of cross-referencing—one more true to the name. For an initial example, let’s take the 3s in the top row of subgrids. Scanning horizontally lets us conclude that there are two possible locations for the remaining 3, as shown below.

Example 3

By scanning vertically from the subgrid with the two 3s, one can easily eliminate the left box as a possible location for a three, since that box is ruled out by the 3 vertically under it. Note that this 3, once filled in, implies a new cross-reference. Don’t ignore such implications. Follow up right away—though try not to lose track of where you were in your scanning pattern.

Ex. 4

Now see how many more digits can be added with this form of horizontal/vertical cross-referencing.

Practice Question 4--cross-reference!

Click thumbnail to view full-size
A5
A5
A5

Short answer:  lots!

Clearly, cross-referencing is a powerful technique—although it wasn’t enough to finish this grid completely.  For that, we’ll need to introduce our other techniques—which we’ll do in a moment.  But here’s one last note on cross-referencing, which will let us sneak up on the concept of “Shadows.”

You probably noticed that it’s most efficient to look for rows or columns with two instances of a particular digit—1s, say, or 7s.  But sometimes a single digit can be enough, so don’t forget to check singles, too.  For example, consider the partial grid below. Can you find the single digit that allows an inference?

Practice Question 5--single digit check!

Click thumbnail to view full-size

As you can see, it turns out that two inferences are possible!

But what if the top row in the middle subgrid had not been conveniently filled in? Would we be “stuck?” Look at the grid without those numbers in the upper row of the right subgrid--and think hard.

Practice Question 6--single digit check, again!

Click thumbnail to view full-size

Shadow Theory

Actually, as we see in this Practice Question, the result needn’t change. The 9 in the left-hand box eliminates all 9s in the lowest row of the right-hand box—which in turn implies that there must be a 9 in the upper row. This then allows us to infer that there must be a 9 in the center cell of the middle box.

This “shadow” effect—in which the knowledge that a particular digit must be located somewhere within a particular row or column casts a “shadow” eliminating locations in another subgrid—is a powerful tool to add to our repertoire.

Let’s practice this a bit. For the grid below, it’s possible to determine a digit in the upper right subgrid by using Shadow Theory. See if you can find it. (You may also spot some possibilities via cross-referencing. If so, good!—you’ve absorbed the idea. But the answer below only includes the Shadow Theory result.)

Practice Question 7--shadow theory check.

Click thumbnail to view full-size

For a tougher challenge, see if you can find 2 digits in the lower left subgrid using shadow theory. (Again, pure cross-referencing will provide other digits, but these will not be shown in the answers.)  It's possible to either digit first, but I show just one sequential possibility.

Practice Question 8--more shadow theory.

Click thumbnail to view full-size

Now let’s combine Cross-referencing and Shadow Theory to move this grid forward.  Remember to keep scanning systematically, and to follow up implications at once.

Practice Question 9--combinations.

Click thumbnail to view full-size

Scanning the second row of subgrids, I saw there was a possible cross-reference for 8s which led me to check the middle bottom subgrid. Realizing that there was a simple cross-reference for the 8 in that subgrid, I filled it in, then went back to the middle subgrid--and was then able to fill in the 8 in that subgrid as well.

Let’s continue.

Practice Question 10

Click thumbnail to view full-size

It’s always a milestone when a entire row or column is completed.  It raises the possibilities for “shadows.”

You may have noticed how cross-referencing and shadow theory tend to propagate the same digits throughout the grid.  Inventorying tends to reveal “new” digits.

Many times, too, it reveals digits that you could find by one of the other methods—but you find them quicker and easier by Inventorying because your attention is directed to the important digits. 

Let’s continue with this grid.

Practice Question 11

Click thumbnail to view full-size
A8
A8
A8

Another milestone.  From here there are many ways to continue—some quite evident, such as the box in the second column from the right.  In fact, you may have been chafing to fill them in.

Let’s go for it. . .

Practice Question 12

Click thumbnail to view full-size

Inventory

You may be stuck at this point. But there’s a way forward, using the concept of inventorying. Look at the middle row (that is, the fifth row down from the top of the grid.) If you inventory the missing digits, you find that 3, 6, and 9 are needed. Now look at the highlighted numbers. With 6 and 9 eliminated, the leftmost box in the row must be the missing 3.

It’s not so much a new concept, as a very useful corollary of the principles we already learned.

Example 5

With that hurdle out of the way (and a new corollary of the Inventory tool in play), let’s practice the integrated use of all these tools.

Practice Question 13

Click thumbnail to view full-size

You could very well choose to finish the lower left subgrid here; placing the 3 and the 8 would be trivial, and the 6 would follow. I chose instead to follow up with the 5s. In the end, it makes little difference which way one chooses.

Practice Question 14

Click thumbnail to view full-size

Hallelujah! Finally, a completed grid.

This has been a tedious Hub to pull together—much scrolling, mousing, and file conversion—but I hope it will help increase your enjoyment of Sudoku puzzles. They are an activity that is fun, challenging, and good for your brain.

Thanks for following these examples right to the end—and if you have questions, thoughts, corrections or suggestions, feel free to comment here, or send me a message via Hubpages.

Happy solving!

working

This website uses cookies

As a user in the EEA, your approval is needed on a few things. To provide a better website experience, hubpages.com uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at: https://corp.maven.io/privacy-policy

Show Details
Necessary
HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
LoginThis is necessary to sign in to the HubPages Service.
Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
AkismetThis is used to detect comment spam. (Privacy Policy)
HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the googleapis.com or gstatic.com domains, for performance and efficiency reasons. (Privacy Policy)
Features
Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
MavenThis supports the Maven widget and search functionality. (Privacy Policy)
Marketing
Google AdSenseThis is an ad network. (Privacy Policy)
Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
Index ExchangeThis is an ad network. (Privacy Policy)
SovrnThis is an ad network. (Privacy Policy)
Facebook AdsThis is an ad network. (Privacy Policy)
Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
AppNexusThis is an ad network. (Privacy Policy)
OpenxThis is an ad network. (Privacy Policy)
Rubicon ProjectThis is an ad network. (Privacy Policy)
TripleLiftThis is an ad network. (Privacy Policy)
Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
Statistics
Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)
ClickscoThis is a data management platform studying reader behavior (Privacy Policy)