GithubHelp home page GithubHelp logo

sat-solver's Introduction

sat-slover-zwang531

DPLL

  • Instruction:
    • navigate to dpll folder
    • run make
    • run ./sat 'filename'
  • Results (timeout = 10sec):
    • graph-ordering-#.cnf : got 'Unsatisfiable' for 2,3,4 and 'Timeout' for others
    • graph-ordering-alt-#.cnf : got 'Satisfiable' for 2,3,4 and 'Timeout' for others
    • order-principle-#.cnf : got 'Satisfiable' for 2,3,4 and 'Timeout' for others
    • total-order-alt-#.cnf : got 'Unsatisfiable' for 2,3,4 and 'Timeout' for others
    • total-order-#.cnf : got 'Unsatisfiable' for 2,3,4 and 'Timeout' for others

DPLL-fast (improved DPLL with better structure)

  • Instruction:
    • navigate to dpll-fast folder
    • run make and run ./test.sh
  • Results (timeout = 10sec): pre-run results are in output.txt

Conflict analysis

  • Instruction:
    • navigate to conflict_analysis folder
    • run make and run ./test.sh
  • Results: pre-run results are in output.txt
    • output format:
      1. conflict @ level 'd'
      2. a clause of literals, each literal followed by its level in parentheses
      3. backtrack to level 'd'

CDCL complete

  • Instruction:
    • navigate to cdcl folder
    • run make
    • run ./sat filename --verbose --time i
    • edit test.sh to run through cnf files in a specific folder with user-chosen mode
    • prerun results of ./petite in output.txt with both flags set and 10s timeout
    • use CRTL-C to interrupt the program
  • side talk:
    • tried 2 types of heuristics:
      1. pick decision literal based on their frequencies, the number of times they occur in the clauses
      2. sort the clauses with the number of literals of each, clauses with fewer number of literals get higher priority, and choose the decision literal in the highest priority clause
    • both worked poorly, so I decided to leave them out, and just pick an unassigned literal with respect to their ordering

sat-solver's People

Watchers

 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.