free sudoku puzzle samurai sudoku puzzle solving sudoku tip san sudoku game printable sudoku free puzzle sudoku web
The general problem of solving sudoku puzzles on n2 x n2 boards of n x n blocks is known to be NP-complete [9]. This gives some indication of why sudoku is difficult to solve, although on boards of finite size the problem is finite and can be solved by a deterministic finite automaton that knows the entire game tree. Wei-Hwa Huang created a meta-sudoku, where the object is to finish drawing the 5×5 grid's pentomino-region borders so as to leave a uniquely solvable puzzle with no identically-shaped regions. Fill in the grid so that every row, every column, and every 3x3 box contains the digits 1 through 9. The maximum number of givens that can be provided while still not rendering the solution unique is four short of a full grid; if two instances of two numbers each are missing and the cells they are to occupy form the corners of an orthogonal rectangle, and exactly two of these cells are within one region, there are two ways the numbers can be assigned. Since this applies to Latin squares in general, most variants of sudoku have the same maximum. The inverse problem—the fewest givens that render a solution unique—is unsolved, although the lowest number yet found for the standard variation without a symmetry constraint is 17, a number of which have been found by Japanese puzzle enthusiasts [12] [13], and 18 with the givens in rotationally symmetric cells. When using marking, additional analysis can be performed. For example, if a digit appears only one time in the mark-ups written inside one region, then it is clear that the digit should be there, even if the cell has other digits marked as well. When using marking, a couple of similar rules applied in a specified order can solve any sudoku puzzle, without performing any kind of backtracking. It is also fairly simple to build a backtracking search. Typically this involves assigning a value (say, 1, or the nearest available number to 1) to the first available cell (say, the top left hand corner) and then moves on to assign the next available value (say, 2) to the next available cell. This continues until a conflict occurs, in which case the next alternative value is used for the last cell changed. If a cell cannot be filled, the program backs up one level (from that cell) and tries the next value at the higher level (hence the name backtracking). Although far from computationally efficient, this "brute force" method will find a solution, given sufficient computation time (even a fairly naive implementation will typically not take a noticeable amount of time). A more efficient program could keep track of potential values for cells, eliminating impossible values until only one value remains for a cell, then filling that cell in and using that information for more eliminations, and so on until the puzzle is solved. Bringing the process full-circle, Dell Magazines, which publishes the original Number Place puzzle, now also publishes two sudoku magazines: Original sudoku and Extreme sudoku. Additionally, Kappa reprints Nikoli sudoku in GAMES Magazine under the name Squared Away; the New York Post, USA Today, The Boston Globe, Washington Post, The Examiner, and San Francisco Chronicle now also publish the puzzle. It is also often included in puzzle anthologies, such as The Giant 1001 Puzzle Book (under the title Nine Numbers). Wei-Hwa Huang created a meta-sudoku, where the object is to finish drawing the 5×5 grid's pentomino-region borders so as to leave a uniquely solvable puzzle with no identically-shaped regions.
It is commonly believed that Dell Number Place puzzles are computer-generated; they typically have over 30 givens placed in an apparently random scatter, some of which can possibly be deduced from other givens. They also have no authoring credits — that is, the name of the constructor is not printed with any puzzle. Wei-Hwa Huang claims that he was commissioned by Dell to write a Number Place puzzle generator in the winter of 2000; prior to that, he was told, the puzzles were hand-made. The puzzle generator was written with Visual C++, and although it had options to generate a more Japanese-style puzzle, with symmetry constraints and fewer numbers, Dell opted not to use those features, at least not until their recent publication of sudoku-only magazines. Building a sudoku puzzle by hand can be performed efficiently by pre-determining the locations of the givens and assigning them values only as needed to make deductive progress. Such an undefined given can be assumed to not hold any particular value as long as it is given a different value before construction is completed; the solver will be able to make the same deductions stemming from such assumptions, as at that point the given is very much defined as something else. This technique gives the constructor greater control over the flow of puzzle solving, leading the solver along the same path the compiler used in building the puzzle. (This technique is adaptable to composing puzzles other than sudoku as well.) Great caution is required, however, as failing to recognize where a number can be logically deduced at any point in construction—regardless of how tortuous that logic may be—can result in an unsolvable puzzle when defining a future given contradicts what has already been built. Building a sudoku with symmetrical givens is a simple matter of placing the undefined givens in a symmetrical pattern to begin with. An alternative technique, that some find easier, is to "mark up" those numerals that a cell cannot be. Thus a cell will start empty and as more constraints become known it will slowly fill. When only one mark is missing, that has to be the value of the cell. One advantage to this method of marking is that, assuming no mistakes are made and the marks can be overwritten with the value of a cell, there is no longer a need for any erasures. There is no doubt that it was not until the British Daily Telegraph introduced the puzzle on a daily basis on 23 February 2005 with the full front-page treatment advertising the fact, that the other UK national newspapers began to take real interest. The Telegraph continued to splash the puzzle on its front page, realizing that it was gaining sales simply by its presence. Until then the Times had kept very quiet about the huge daily interest that its daily sudoku competition had aroused. That newspaper already had plans for taking advantage of their market lead, and a first sudoku book was already on the stocks before any other national UK papers had realised just how popular sudoku might be. Solving sudoku puzzles (as well as any other NP-hard problem) can be expressed as a graph colouring problem. The aim of the puzzle in its standard form is to construct a proper 9-colouring of a particular graph, given a partial 9-colouring. The graph in question has 81 vertices, one vertex for each cell of the grid. The vertices can be labelled with the ordered pairs , where x and y are integers between 1 and 9. In this case, two distinct vertices labelled by and are joined by an edge if and only if:or, or, and A three-dimensional sudoku puzzle was invented by Dion Church and published in the Daily Telegraph in May 2005.
sudoku puzzle game and solver by MuddyFunksters
Although for standard sudoku problems highly optimized and sophisticated backtracking programs are fastest, another popular way of solving such constraint problems is Donald Knuth's Dancing Links Algorithm for solving the exact matrix cover problem, of which the sudoku problems are a special case. Knuth's algorithm can be applied by converting the sudoku puzzle to a matrix cover problem, solve this problem instead, and convert the solution obtained back to a completed sudoku grid. This method is now preferred by many sudoku programmers, by virtue of its execution speed, simplicity and ease of implementation and the availability of documentation and reference source code. This principle also works with candidate numeral subsets, that is, if three cells have candidates (p,q,r), (p,q), and (q,r) or even just (p,r), (q,r), and (p,q), all of the set (p,q,r) elsewhere within that same scope can be deleted. The principle is true for all quantities of candidate numerals. Three days later The Daily Mail began to publish the puzzle under the name "Codenumber". The Daily Telegraph introduced its first sudoku by its puzzle compiler Michael Mepham on 19 January 2005 and other Telegraph Group newspapers took it up very quickly. Nationwide News Pty Ltd began publishing the puzzle in The Daily Telegraph of Sydney on 20 May 2005; five puzzles with solutions were printed that day. The immense surge in popularity of sudoku in British newspapers and internationally has led to it being dubbed in the world media in 2005 the "fastest growing puzzle in the world". A second related principle is also true. If, within any set of cells (row, column or region), a set of candidate numerals can only appear within a number of cells equal to the quantity of candidate numerals, the cells and numerals are matched and only those numerals can appear in the matched cells. Other candidates in the matched cells can be eliminated. For example, if the 2 numerals (p,q) can only appear in 2 cells within a specific set of cells (row, column or region), all other candidates in those 2 cells can be eliminated. The world's first live TV sudoku show, 1 July 2005, Sky One.As a one-off, the world's first live TV sudoku show, sudoku Live, was broadcast on 1 July 2005 on Sky One. It was presented by Carol Vorderman. Nine teams of nine players (with one celebrity in each team) representing geographical regions competed to solve a puzzle. Each player had a hand-held device for entering numbers corresponding to answers for four cells. Conferring was permitted although the lack of acquaintance of the players with each other inhibited an analytical discussion. The audience at home was in a separate interactive competition. A Sky One publicity stunt to promote the programme with the world's largest sudoku puzzle went awry when the 275 foot (84 m) square puzzle was found to have 1,905 correct solutions. The puzzle was carved into a hillside in Chipping Sodbury, near Bristol, England, in view of the M4 motorway. The stunt was cleverly timed to coincide with a major road expansion, where an imposed 40 mph speed restriction allowed drivers to safely view the puzzle whilst driving. Ideally one needs to find a combination of techniques which avoids some of the drawbacks of the above elements. The counting of regions, rows, and columns can feel boring. Writing candidate numerals into empty cells can be time-consuming. The what-if approach can be confusing unless you are well organised. The proverbial Holy Grail is to find a technique which minimizes counting, marking up, and rubbing out. Yoshimitsu Kanai published his computerized puzzle generator under the name Single Number for the Apple Macintosh [15] in 1995 in Japanese and English, for the Palm (PDA) [16] in 1996, and for the Mac OS-X [17] in 2005.
Some cells already contain numerals, known as "givens" (or sometimes as "clues"). The goal is to fill in the empty cells, one numeral in each, so that each column, row, and region contains the numerals 1–9 exactly once. Alphabetical variations have also emerged; there is no functional difference in the puzzle unless the letters spell something. Some variants, such as in the TV Guide, include a word reading along a main diagonal, row, or column once solved; determining the word in advance can be viewed as a solving aid. The Code Doku [7] devised by Steve Schaefer has an entire sentence embedded into the puzzle; the Super Wordoku [8] from Top Notch embeds two 9-letter words, one on each diagonal. It is debatable whether these are true sudoku puzzles: although they purportedly have a single linguistically valid solution, they cannot necessarily be solved entirely by logic, requiring the solver to determine the embedded words. Top Notch claim this as a feature designed to defeat solving programs. Other Japanese publishers refer to the puzzle as Number Place, the original U.S. title, or as "Nanpure" for short. Some non-Japanese publishers spell the title as "Su Doku". The puzzle was designed anonymously by Howard Garns, a 74-year-old retired architect and freelance puzzle constructor, and first published in 1979.[14] Although likely inspired by the Latin square invention of Leonhard Euler, Garns added a third dimension (the regional restriction) to the mathematical construct and (unlike Euler) presented the creation as a puzzle, providing a partially-completed grid and requiring the solver to fill in the rest. The puzzle was first published in New York by the specialist puzzle publisher Dell Magazines in its magazine Dell Pencil Puzzles and Word Games, under the title Number Place (which we can only assume Garns named it). Yoshimitsu Kanai published his computerized puzzle generator under the name Single Number for the Apple Macintosh [15] in 1995 in Japanese and English, for the Palm (PDA) [16] in 1996, and for the Mac OS-X [17] in 2005. The digits to be entered are 1, 2, 3, 4, 5, 6, 7, 8, 9. Cross-hatching: the scanning of rows (or columns) to identify which line in a particular region may contain a certain numeral by a process of elimination. This process is then repeated with the columns (or rows). For fastest results, the numerals are scanned in order of their frequency. It is important to perform this process systematically, checking all of the digits 1-9. The general problem of solving sudoku puzzles on n2 x n2 boards of n x n blocks is known to be NP-complete [9]. This gives some indication of why sudoku is difficult to solve, although on boards of finite size the problem is finite and can be solved by a deterministic finite automaton that knows the entire game tree.
sudoku listing
Main listing