Git Product home page Git Product logo

exact_cover's People

Contributors

sciolizer avatar

Watchers

 avatar  avatar

Forkers

izuk

exact_cover's Issues

Sudoku

Good to come across this library, which looks well-implements.

Trying it out on your sample grid

g1 =
["003020600",
"900305001",
"001806400",
"008102900",
"700000008",
"006708200",
"002609500",
"800203009",
"005010300"]

sampleGrid :: Grid
sampleGrid = zipWith3 (\r c v -> Move (r, c) v) rows cols vals
where
rows, cols, vals :: [Int]
rows = [ n | n <- [0..8], _ <- [0..8]]
cols = [ m | _ <- [0..8], m <- [0..8]]
vals = map digitToInt (concat g1)

result = solveSudoku sampleGrid

triggers the "invalid state" error. Is this an issue with the constraint / satisfier specification, or with solve, do you think?

example with integer lists

Hi,

Searching for an Algorithm X implementation in Haskell, I came across your repository. Would you be willing to provide an example or give me a hint as to how to implement your code when each set is presented as a list of a list of ints ( i.e., each set is type [[Int]] )? One subset of each set needs to be chosen where in the final result none of these subsets share any elements (their intersections are null).

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.