Giter Club home page Giter Club logo

graph-split-sat-solver's Introduction

Graph-Split-SAT-Solver

The program models the problem of a graph to be split into exactly three sets, based on problem constraints, to a boolean satisfiability problem (SAT) and uses SAT solver to find and present a solution, if exists.

Problem

The solution to the problem is to split the graph into exactly three sets, where nodes connected with positive edge are in the same set, and nodes with negative are in different.

About the program

There are the following options to be given as arguments to the program:

  • In case the first argument equals 0, the program promts user to give the path to the graph.txt file containing the following parameters, in the order shown below, each ending with newline:

    1. Number of nodes
    2. Percentage of negative-value edges
    3. Percentage of positive-value edges
    4. Graph density
    5. Adjacency Matrix
    6. Adjacency Matrix with sign of each edge
  • In case the first argument equals 1, the program generates a random graph based on the number of nodes, density of graph, precentage of positive and negative edges, that the user will be promted to enter

The program converts the problem into CNF (Conjunctive normal form) in order to be given in a SAT problem solver. Presents the solution from the SAT problem solver.

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.