|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectRandomSatisfiedCnfGenerator
public class RandomSatisfiedCnfGenerator
This Generator generates random satisfiable CNF formulas of a fixed size over a fixed number of symbols and with a fixed number of literals per clause. This class also includes a main method for testing.
| Constructor Summary | |
|---|---|
RandomSatisfiedCnfGenerator(int num_clauses,
int num_symbols,
int num_literals)
Constructor for this object. |
|
| Method Summary | |
|---|---|
java.lang.String |
author()
The author of this generator. |
java.lang.String |
description()
A brief description of this generator. |
Cnf |
getNext()
Generates another CNF of the specified form. |
static void |
main(java.lang.String[] argv)
This is a simple main. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RandomSatisfiedCnfGenerator(int num_clauses,
int num_symbols,
int num_literals)
num_clauses - number of clauses in constructed CNFnum_symbols - number of symbols (variables) in CNFnum_literals - number of literals per clause| Method Detail |
|---|
public Cnf getNext()
getNext in interface Generatorpublic java.lang.String author()
author in interface Generatorpublic java.lang.String description()
description in interface Generatorpublic static void main(java.lang.String[] argv)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||