Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

solves sudokus saved in simple txt format

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 Makefile
Octocat-spinner-32 README
Octocat-spinner-32 sudoku.c
Octocat-spinner-32 sudoku.h
Octocat-spinner-32 sudoku.rb
Octocat-spinner-32 sudoku.txt
Octocat-spinner-32 sudoku1.txt
Octocat-spinner-32 sudoku2.txt
Octocat-spinner-32 sudoku3.txt
Octocat-spinner-32 sudoku4.txt
I wanted to write a simple sudoku solver. Just try out this:

  ruby sudoku.rb *.txt
  make test (for the c version)
I also implemented the solver in c. I just wanted to have some performance
comparison. On my machine i get those numbers (inc. vm/interpreter bootup):

                        real	        user           sys	
  C                 0m0.063s      0m0.057s      0m0.003s
  ruby 1.9.2p0      0m0.241s      0m0.224s      0m0.012s
  ruby 1.8.7p174    0m0.441s      0m0.223s      0m0.012s
Something went wrong with that request. Please try again.