Няма описание

Lucas Stadler bd6f9241e8 add two (slightly more complex) examples преди 10 години
..
examples bd6f9241e8 add two (slightly more complex) examples преди 10 години
src ea6f4850a7 remove two more uses of `.clone` преди 10 години
.gitignore 318fefac2e mv dpll solve преди 10 години
Cargo.lock 318fefac2e mv dpll solve преди 10 години
Cargo.toml 318fefac2e mv dpll solve преди 10 години
README.md d052a48bd9 link the dpll source from the readme преди 10 години

README.md

solve

Warning: Don't use this, it's basically my "Hello World" in Rust and looks and smells accordingly. If you Know Things™ and want to tell me how to do stuff better please do so, but don't expect to find pretty things yet. Maybe at some point in the future...

That being said, this is me playing around with Rust and writing some code related to constraint programming at the same time.

There are a few things here:

  • an incomplete parser for CNFs in DIMAC format (./src/cnf.rs)
  • a naïve implementation of the DPLL algorithm (./src/dpll.rs)
  • a binary that uses these things to parse CNFs on stdin and solves them using the DPLL implementation

    you can try it yourself:

    $ cat examples/external-02-quinn.cnf | cargo run --release