K Coloring SAT problem

Solving a K-coloring problem with SAT

View the Project on GitHub ibipul/coloring_SAT

Author:


K-Coloring with SAT

Given a Graph( G ) and a number of colours ( K ), the program says whether the Graph is K colourable. A python script is used to convert the graph to it's SAT in CNF form, which is then fed to a SAT solver zchaff which states whether the it's colorable or not or simply undecidable.

Graph to CNF Mapping

Usage:

./graph2cnf.py graph_i.txt > graph_i.cnf
./zchaff graph_i.cnf
Zchaff

source (ver--2008.10.12) is included in the project rep as a .zip, extract and then use make (Makefile is included in the source) to create the executable it then copy the executable to any location and run as mentioned before