@hackage set-cover0.1.1.1
Solve exact set cover problems like Sudoku, 8 Queens, Soma Cube, Tetris Cube
Categories
License
BSD-3-Clause
Maintainer
Henning Thielemann <haskell@henning-thielemann.de>
Links
Versions
Installation
Dependencies (20)
- array >=0.4 && <0.6
- base >=4 && <5
- bool8 >=0.0 && <0.1
- comfort-array >=0.3 && <0.6
- containers >=0.4 && <0.9
- enummapset >=0.1 && <0.8 Show all…
Dependents (2)
@hackage/battleship-combinatorics, @hackage/acme-everything
Package Flags
buildexamples
(off by default)
Build example executables
llvm
(off by default)
Enable efficient array processing using LLVM
Solver for exact set cover problems.
Included examples:
Sudoku, Nonogram, 8 Queens, Domino tiling, Mastermind, Alphametics,
Soma Cube, Tetris Cube, Cube of L's,
Logika's Baumeister puzzle, Lonpos pyramid, Conway's puzzle.
The generic algorithm allows to choose between
slow but flexible Set from containers package
and fast but cumbersome bitvectors.
For getting familiar with the package
I propose to study the Queen8 example along with Math.SetCover.Exact.
The Sudoku and Nonogram examples also demonstrate how to interpret the set-cover solution in a human-friendly way.
Build examples with cabal install -fbuildExamples.
The package needs only Haskell 98.
There is also an experimental implementation using LLVM and knead.
Do not rely on that interface in released packages.