Main > Free Download Search >

Free sudoku solver software for linux

sudoku solver

Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 103
Sudoku solver 0.1

Sudoku solver 0.1


Sudoku solver application was created for solving a Sudoku with a backtracking algorithm. more>>
Sudoku solver application was created for solving a Sudoku with a backtracking algorithm. Instead of using a 9 x 9 matrix, it extends the matrix to 10 x 36 (10 rows, 36 columns), storing information in the extra cells.

The last row is used for keeping track of how many cells, for the current column, are still available.

The columns 9-17 (0-based) are used for storing the numbers which are still available in rows 0-8.

The columns 18-26 are used for storing the numbers which are still available in columns 0-8.

The columns 27-35 are used for storing the numbers which are still available in each square (counting from left to right and from top to bottom).
<<less
Download (MB)
Added: 2007-08-20 License: GPL (GNU General Public License) Price:
1712 downloads
A Sudoku Solver in C 1.11

A Sudoku Solver in C 1.11


A Sudoku Solver in C is a console-based Linux program, written in C language, that solves Su Doku puzzles using deductive logic. more>>
A Sudoku Solver in C is a console-based Linux program, written in C language, that solves Su Doku puzzles using deductive logic. It will only resort to trial-and-error and backtracking approaches upon exhausting its deductive moves.
Puzzles must be of the standard 9x9 variety using the (ASCII) characters 1 through 9 for the puzzle symbols. Puzzles should be submitted as 81 character strings which, when read left-to-right will fill a 9x9 Sudoku grid from left-to-right and top-to-bottom. In the puzzle specification, the characters 1 - 9 represent the puzzle givens or clues. Any other non-blank character represents an unsolved cell.
The puzzle solving algorithm is home grown. I did not borrow any of the usual techniques from the literature, e.g. Donald Knuths "Dancing Links." Instead I rolled my own from scratch as a personal challenge. As such, its performance can only be blamed on yours truly. Still, I feel it is quite fast. On a 333 MHz Pentium II Linux box it solves typical medium force puzzles in approximately 800 microseconds or about 1,200 puzzles per second, give or take. On an Athlon XP 3000 it solves about 6,600 puzzles per sec. (Solving time is dependent upon degree of difficulty, so YMMV.)
Description of Algorithm:
The puzzle algorithm initially assumes every unsolved cell can assume every possible value. It then uses the placement of the givens to refine the choices available to each cell. I call this the markup phase.
After markup completes, the algorithm then looks for singleton cells with values that, due to constraints imposed by the row, column, or 3x3 region, may only assume one possible value. Once these cells are assigned values, the algorithm returns to the markup phase to apply these changes to the remaining candidate solutions. The markup/singleton phases alternate until either no more changes occur, or the puzzle is solved. I call the markup/singleton elimination loop the Simple Solver because in a large percentage of cases it solves the puzzle.
If the simple solver portion of the algorithm doesnt produce a solution, then more advanced deductive rules are applied.
Ive implemented two additional rules as part of the deductive puzzle solver. The first is subset elimination wherein a row/column/region is scanned for X number of cells with X number of matching candidate solutions. If such subsets (or tuples) are found in the row, column, or region, then the candidates values from the subset may be eliminated from all other unsolved cells within the row, column, or region, respectively.
The next deductive rule examines each region looking for candidate values that exclusively align themselves along a single row or column, i.e. a vector. If such candidate values are found, then they may be eliminated from the cells outside of the region that are part of the aligned row or column.
Note that each of the advanced deductive rules calls all preceeding rules, in order, if that advanced rule has effected a change in puzzle markup.
Finally, if no solution is found after iteratively applying all deductive rules, then we begin trial-and-error using recursion for backtracking. A working copy is created from our puzzle, and using this copy the first cell with the smallest number of candidate solutions is chosen. One of the solutions values is assigned to that cell, and the solver algorithm is called using this working copy as its starting point. Eventually, either a solution, or an impasse is reached.
If we reach an impasse, the recursion unwinds and the next trial solution is attempted. If a solution is found (at any point) the values for the solution are added to a list. Again, so long as we are examining all possibilities, the recursion unwinds so that the next trial may be attempted. It is in this manner that we enumerate puzzles with multiple solutions.
Note that it is certainly possible to add to the list of applied deductive rules. The techniques known as "X-Wing" and "Swordfish" come to mind. On the other hand, adding these additional rules will, in all likelihood, slow the solver down by adding to the computational burden while producing very few results. Ive seen the law of diminishing returns even in some of the existing rules, e.g. in subset elimination I only look at two and three valued subsets because taking it any further than that degraded performance.
Enhancements:
- Code optimization has resulted in a 30% increase in speed.
<<less
Download (0.025MB)
Added: 2006-03-27 License: GPL (GNU General Public License) Price:
1332 downloads
sudoku solver by darsie 1.6

sudoku solver by darsie 1.6


sudoku solver by darsie is a console-based sudoku solver. more>>
sudoku solver by darsie project is a console-based sudoku solver.

sudoku solver by darsie is a console program that reads data from stdin (typically redirected from a file) and prints a possibly partial result. Definitive numbers are printed all over their fields.

Other fields contain the numbers that are not yet excluded.

Three solving rules are implemented and most sudokus are solved in a few milliseconds.

Usage:
sudoku<<less
Download (0.035MB)
Added: 2007-01-02 License: GPL (GNU General Public License) Price:
1029 downloads
Automagical Sudoku Solver 1.7

Automagical Sudoku Solver 1.7


Automagical Sudoku Solver project is an attempt to solve Sudoku puzzles using a computer. more>>
Automagical Sudoku Solver project is an attempt to solve Sudoku puzzles using a computer. It can solve rather tough puzzles, but not all of them.

Installation:

The source code should compile flawlessly using the make utility. Then, simply run "ass < foo", where foo is a sudoku puzzle in text format like the ones in the puzzles/ directory.

Arguments

-s show progress using an ncurses interface
-v show version number
-d [2-4] show debug info (4 is highest level)
<<less
Download (0.037MB)
Added: 2007-06-18 License: GPL (GNU General Public License) Price:
861 downloads
Su Doko Solver 1.4

Su Doko Solver 1.4


Solves the game Su Doku... more>> <<less
Download (19KB)
Added: 2009-04-12 License: Freeware Price: Free
195 downloads
Sudoku Tool 1.0

Sudoku Tool 1.0


Sudoku Tool is a sudoku game that helps you to solve sudoku puzzles. more>>
Sudoku Tool is a sudoku game that helps you to solve sudoku puzzles. Sudoku Tool can generate puzzles randomly or puzzles can be entered manually.

Some of the features include random puzzle generation, pencil marks, and the ability to save games.

Manual Setup:

The game starts in initialization mode. In this mode, you are setting up the a puzzle that you got from a newspaper, online, ... You are manually setting up the puzzle.

To select a location, click a square with the left mouse button and type in the number you want to place 1-9, or 0 or space to remove a value you placed there previously. You can also change other values by simply typing a new number.

When you have the puzzle set up the way you want, click the Start Game button to start playing.

Random Game:

To have a game randomly generated for you, click the Setup New Game button. A new window pops up asking you to select either "Manual" or "Random". Select "random" and a new game will appear.

To build, use:

make -f Makefile.[system]
<<less
Download (1.5MB)
Added: 2006-08-21 License: GPL (GNU General Public License) Price:
1164 downloads
Sudoku Susser 2.5.1

Sudoku Susser 2.5.1


Sudoku Susser is a free program that helps you play Sudoku. more>> <<less
Download (2.0MB)
Added: 2006-02-06 License: Freeware Price:
770 downloads
sudoku 0.3

sudoku 0.3


sudoku is a very simple sudoku game. more>> <<less
Download (0.10MB)
Added: 2005-12-06 License: GPL (GNU General Public License) Price:
1422 downloads
Sudoku Savant 1.1

Sudoku Savant 1.1


Sudoku Savant is a simple GUI-driven application to solve and generate Sudoku puzzles through logical means. more>>
Sudoku Savant is a simple GUI-driven application to solve and generate Sudoku puzzles through logical means.

Sudoku Savant generates and solves standard Sudoku puzzles with anything from 3x3 to 5x6 or 6x5 grids, using the following strategies:

- Singletons
- Locked candidates
- Number subsets
- X-Wings, Swordfish and Jellyfish
- Both Simple and Multi-Colouring.

These strategies should be enough to provide a step by step solution for any Sudoku puzzle that you are likely to find in a newspaper or magazine, although Savant can also resort to "trial and error" if presented with something really pathologically nasty. (This will at least confirm that the puzzles solution is unique.)

You may also parameterise or turn off the more advanced strategies, to see whether they were really needed.

Finally, Sudoku Savant lets you solve the puzzle by hand, providing hints, cell colouring, up to 4 pencil marks per cell, and the ability to high-light any incorrect moves. A partially completed puzzle can be saved in a simple text format so that you can continue solving it later.

<<less
Download (0.14MB)
Added: 2006-07-18 License: GPL (GNU General Public License) Price:
1197 downloads
Sudokut 0.3

Sudokut 0.3


Sudokut is a command line solver for Sudoku puzzles. more>>
Sudokut is a command line solver for Sudoku puzzles. When supplied with a Sudoku string or file, it returns all possible solutions.
Sudokut takes approximately half a second to solve a medium force Sudoku by using an efficient algorithm that is guaranteed to find all the solutions. It accepts many options that implement various features (validity check, diff, suggestions, and probing).
Enhancements:
- two new solving techniques are supported: naked triplets reduction, hidden triplets reduction
- new -u option to test the unicity of the solution
- new -m option to modify the string
<<less
Download (0.027MB)
Added: 2006-09-15 License: BSD License Price:
1134 downloads
KSudoku 0.4

KSudoku 0.4


KSudoku is a Sudoku puzzle generator and solver for KDE. more>>
KSudoku project can generate and solve sudoku puzzles (of different difficulty level) using a randomized least-candidate algorithm.
The sudoku boards currently supported are 9x9 and 16x16: but the program is fully expandable since the algorithm is extendible to any general graph coloring problem (the board is in fact stored as a graph and the numbers are the colors)
In order to create a playable puzzle it fills a blank sudoku grid with a completed puzzle (randomly), then another algorithm (to be improved with some logical constraint) removes randomly numbers from it checking each time that the resultant puzzle has only one solution: it is a bit slower than logic-based elimination tecniques but it creates puzzles that are less straight-solved (more fun).
The GUI is user-friendly and requires KDE. Written in C++.
INSTALLATION
1. Open a shell in project directory (the one where this file is located)
2. Run "./configure"
(will install the program in /usr/local/kde, if you want to install in /usr run "./configure --prefix=/usr")
3. Run "make"
4. Run "make install" as root.
5. Run "ksudoku" (if does not start check point 2)
Enhancements:
- Added support for custom shaped sudokus
- Samurai sudoku
- Jigsaw sudoku, XSudoku, 4x4
- Undo/redo
- Added new export system (you can print multiple puzzles in the same page)
- File format is now XML
- Added new welcomescreen and settings dialog
- Internal structure changed
<<less
Download (0.31MB)
Added: 2007-03-17 License: GPL (GNU General Public License) Price:
960 downloads
CSudoku 1.0

CSudoku 1.0


CSudoku is a command line Sudoku solving program. more>>
CSudoku is a command line Sudoku solving program. CSudoku project solves the popular 9x9 versions of Sudoku using Donald Knuths Dancing Links algorithm.

It was created as a fun exercise in computer programming and not necessarily to be a program useful to anyone in particular.

There are many other Sudoku solving programs that are more refined and have many more features than this program would ever dream of having.

Installation:

1. unpack csudoku-1.0.tar.gz
2. cd csudoku-1.0/src
3. run make

Usage:

To run the sudoku program you will first need to install it using the steps as outlined above. Now, assuming you are in the directory csduoku-1.0/src, invoke the command:

./sudoku < infile

where infile is an input file containing 1 or more 9x9 Sudokus. For the format of the infile you can check out the file top95. In fact you can use the top95 file to test the program. By invoking the command:

./sudoku < ../top95

you should see some input and output details and at the end under "Overall Statistics" it should read

...
95 out of 95 were valid
0 has no solution(s)
95 had unique solution(s)
0 had multiple solution(s)
...

If this was done successfully you can now use the program to solve whatever Sudoku puzzle is giving you trouble. Enjoy!
<<less
Download (0.025MB)
Added: 2006-05-31 License: GPL (GNU General Public License) Price:
1242 downloads
Sudoku Sensei 2.00

Sudoku Sensei 2.00


Sudoku Sensei is a sudoku explainer C/C++ library with sample programs. more>>
Sudoku Sensei project is a sudoku "explainer" C/C++ library with sample programs.
It can list the logical steps taken. It can generate new Sudokus and rank their difficulty. It supports not only 9x9 grids, but MxN, samurai, or any layout you can describe.
The core is a C/C++ library.
It includes sample programs.
Enhancements:
- This release adds a Graphical User Interface with a manual and a tutorial.
<<less
Download (0.14MB)
Added: 2007-08-17 License: GPL (GNU General Public License) Price:
804 downloads
sudoku-perl 1.50

sudoku-perl 1.50


sudoku-perl is a Sudoku player that offers a board, assistance, and solving using a (text based) ANSI screen. more>>
sudoku-perl is a Sudoku player that offers a board, assistance, and solving using a (text based) ANSI screen. sudoku-perl offers a simple alphanumeric board display that supports the 9x9 matrix.

It does not generate a Sudoku puzzle; for this, the user must look on the Internet, newspapers, Sudoku booklets, etc. and take over the sudoku initial setting from there.

However, it assists the user in solving the Sudoku by providing some functions, up to and including solving the Sudoku from the current board setting.

<<less
Download (0.020MB)
Added: 2006-10-07 License: Artistic License Price:
1116 downloads
sudokumat 5.1

sudokumat 5.1


sudokumat is a software that allows to easily create and solve sudokus of different levels of difficulty. more>>
sudokumat project allows you to easily create and solve sudokus of different levels of difficulty.

It is possible to create your own "pdf-sudoku-book" with as many sudokus as you want.

Sudokumat solves every sudoku within milliseconds.

<<less
Download (1.4MB)
Added: 2007-03-14 License: Freeware Price:
956 downloads
Secleted [ 0 ] software to compare
  • Page: 1 of 5
  • 1
  • 2
  • 3
  • 4
  • 5