constraint-search 0.0.0

Finite-domain constraint satisfaction: propagation to a fixpoint, all-different reasoning, cost-ordered inference rules, backtracking with a trail and solution counting
Documentation
  • Coverage
  • 100%
    3 out of 3 items documented0 out of 2 items with examples
  • Size
  • Source code size: 18.0 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 26.6 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • sunsided
constraint-search-0.0.0 has been yanked.

constraint-search

Finite-domain constraint satisfaction in Rust: variables with small domains, constraints that prune them, and search for the assignments that remain.

Scope

  • Finite-domain variables with bitset domains and a trail for undoing changes on backtrack
  • Propagators run to a fixpoint, including all-different with Hall-set reasoning
  • Pluggable inference rules ordered by cost, for human-style solving and difficulty grading
  • Backtracking search with variable and value ordering heuristics under a budget
  • Solution counting with early stop, for checking that a puzzle has a unique solution
  • Exact cover with dancing links

Typical uses are logic puzzles (Sudoku and its variants, nonograms, KenKen), map colouring, timetabling and small scheduling problems. Adversarial games belong in game-tree-search, and path finding in heuristic-search.

License

Licensed under either of

at your option.