Skip to content

adityanarkar/CIS-890-Assignment-1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

CIS-890-Assignment-1

Formula will be generated using following arguments:

-n : Number of non-empty clauses that should occur in a formula

-k : Maximum number of variables that can occur in a formula

-l : Maximum size of each clause

--strict: Every clause should have l literals (optional)

Instructions to generate CNF formula

  1. Go to the folder where the groovy file RandomFormulaGenerator.groovy is.

  2. Enter following command in CLI.

groovy RandomFormulaGenerator.groovy -n N -k K -l L --strict

  1. You will get a file with .cnf extension in the same folder of your program.

Note: Enter your constraint parameters in place of N, K and L by following definitions given above for each option. --strict option is not necessary to generate CNF formula. By specifying --strict, every clause contained in a generated formula will be having L literals.

---Aditya Narkar---

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages