Giter Site home page Giter Site logo

kapilhk / satpie Goto Github PK

View Code? Open in Web Editor NEW
19.0 5.0 4.0 1.11 MB

SAT solver based on CDCL in Python with Conflict Driven Clause Learning, clever Heuristics - VSIDS, 2 - Literal watch advanced data structure, Random restarts with restart probability decay

License: GNU General Public License v3.0

Jupyter Notebook 58.47% Python 41.53%
sat sat-solver satisfiability cdcl cdcl-algorithm python python3 jupyter-notebook vsids edusat

satpie's Introduction

SatPie

SAT solver based on CDCL in Python

(Easy to Understand - Highly Commented Code) Features:

  1. Conflict Driven Clause Learning
  2. Clever Heuristics - VSIDS
  3. 2 - Literal watch advanced data structure
  4. Random restarts with restart probability decay

Test & Benchmark Results:

Comparison with Edusat:
---------------------------------------------------------------------------------------------------
|        Files :        bmc-2.cnf   | bmc-7.cnf | unsat3.cnf | par8.cnf | aim-50 | aim100 | zebra |
| ------------------- | ----------- | --------- | ---------- | -------- | ------ | ------ | ----- |
| Variables:          | 2810        | 8710      | 13         | 64       | 50     | 100    | 155   |
| SATPIE              | 15.5        | 24.1      | 0.001      | 0.014    | 0.015  | 0.013  | 0.016 |
| Edusat              | 0.26        | 0.324     | 0.15       | 0.014    | 0.031  | 0.013  | 0.4   |

Status:

-> The correctness of the SAT Solver has been verified through some of the Benchmarks from various sources.

-> The Solver performs excellently for variables โ‰ˆ till 2000, even better than EduSat in some cases.

-> The performance starts degrading for very large instances which can be optimized further in future work by learned clause deletion and Unique Implication Point based clause learning.

-> Random Restart Probabilty can be adjusted to optimize performance for larger instances.

satpie's People

Contributors

kapilhk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  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.