Coder Social home page Coder Social logo

ppur-random-horn-sat's Introduction

Parallel Positive Unit Propagation algorithm on a random Horn-SAT formula

This repository contains code to run an empirical analysis of the Parallel Positive Unit Resolution (PPUR) algorithm on a random 1-3-Horn-SAT formula instance. The Horn formula model is described in this paper.

Requires:

  • python3.8, numpy (to run code)
  • jupyterlab, ipython, pandas, matplotlib, seaborn, ipympl, nodejs, pillow (to run the Jupyter notebook to produce figures)

Reproducing results

  • Clone this repository and cd into it
$ git clone https://github.com/AnanthHari/PPUR-random-Horn-SAT.git
$ cd PPUR-random-Horn-SAT
  • Reproducing the results on the maximum depth of the PPUR algorithm on random Horn-SAT input for various n (number of variables) --- Suitable commands are present at the end of get_h_sweep.py file
 $ python get_h_sweep.py 0.171 0.176 5
  • Explanation of the input arguments: The last 3 arguments are: min value of d1 to start the search, max value of d1 to end the search, and finally, the precision of d1 parameter.
  • Outputs will be generated in the outputs subdirectory.
  • Reproducing the results on the probability of satisfiability of the PPUR algorithm on random Horn-SAT input for various d1 and d3 values for a fixed n
 $ python get_sat_sweep.py 5
  • Explanation of the input arguments: The last argument is the precision of d1 parameter to be used.
  • Outputs will be generated in the outputs subdirectory.
  • Reproducing the figures:
    • Run the Jupyter notebook after installing the needed packages. The output figures would be stored in figures subdirectory.

ppur-random-horn-sat'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.