Skip to content

qawbecrdtey/magma_dimacs_cnf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DIMACS CNF generator for Magmas

There will be updates for improvements or new experiments.

How to use the generator

To obtain the .cnf file in most linux environment,

$ g++ --std=c++14 path/to/code.cpp -o generator
$ ./generator N > path/to/dimacs.cnf

Replace N with any number not smaller than 5.

Using the file path/to/dimacs.cnf, pass it to any solver like CaDiCaL or Kissat.

$ ./cadical path/to/dimacs.cnf

Contribute

If you'd like to suggest a new experiment or give improvements in code, please make a github issue, or make a pull request from the forked repo.

Files

Defines a function a255, which generates clauses to find a magma which all variables satisfy equation 255.

Defines a function e255, which generates clauses to find a magma with at least one variable which satisfies equation 255.

Defines a function na255, which generates clauses to find a magma with at least one variable which doesn't satisfy equation 255.

Defines a function ne255, which generates clauses to find a magma which no variables satisfy equation 255.

Defines a function a677, which generates clauses to find a magma which all variables satisfy equation 677.

Generates a .cnf file which can be satisfied if and only if there is some magma with N elements which satisfies equation 677.

Generates a .cnf file which can be satisfied if and only if there is some magma with N elements which both equation 677 and equation 2504 are satisfied.

Generates a .cnf file which can be satisfied if and only if there is some magma with N elements which satisfies equation 677 but not equation 255.

Defines a function a2504 which generates clauses to find a magma which all variables satisfy equation 2504.

About

A list of DIMACS CNF generators.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published