Git Product home page Git Product logo

lvr's Introduction

Collection of (malfunctioning) SAT solvers

This repository contains couple of SAT solvers that were developed during as a project in "Logic in Programming" course. As title already stated, not all of them are functional, so take caution when using results in real world.

Naive implementation of DPLL algorithm

NOTE: This implementation used parts of the numpy library, so before trying to run it, make sure numpy is installed.

Naive implementation can be found in naive_solver.py. For brief usage instructions simply execute naive_solver.py -h. Typical invocations would be:

./naive_solver.py -i input.dimacs               # Print result into stdout
./naive_solver.py -i input.dimcas -o result.txt # Place result in file
./naive_solver.py -o result.txt                 # Read dimcas from stdin

Exit code of the solver indicates whether input formula is satisfiable. Zero return status means success and one means not satisfiable.

Samples

Some relatively large and quite hard examples that naive implementation can solve in cca. 20 seconds can be found in samples folder.

Authors

  • Nejc Vesel
  • Tadej Borovšak

lvr's People

Contributors

veseln avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.