Giter Club home page Giter Club logo

fastsudoku's Introduction

fastSudoku

A Sudoku Solver with speed and scalability in mind

To use the solver execute it in a commandline enviorment with a text file containing the Sudoku as an argument.

The solver will print all possible solutions to the Sudoku on the command line.

To solve the Sudoku a Branch and Bound algorithm is used, but also a Sudoku specific algorithm (based on how a human would solve a Sudoku) with Branch and Bound as Fallback. Both algorithms will be executed and the computation time of both of the algorithms will be printed for comparision(For a better comparision comment out printMatrix() in BranchAndBound).

The Sudoku textfile must me formatted as follows:

  • Each Sudoku row must be in a new seperate line
  • The first row must be in the first line
  • To indicate empty spaces use x, 0, # or *
  • All characters except 0, 1, ... , 9, x, #, * or new lines will be ignored

This is optimized for quick and dirty copypasting.

fastsudoku's People

Contributors

marcellieb avatar

Watchers

 avatar

fastsudoku's Issues

Rewrite methodes to allow any size Sudoku

getPosQuadrat, getQuadrat and all print methods need to updated in NUMBERMATRIX.h and
openSudoku and main in Sudoku.c need to be updated to allow Sudokus up to sizeof(int)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.