Package org.jacop.examples.fd
Class Cryptogram
java.lang.Object
org.jacop.examples.fd.ExampleFD
org.jacop.examples.fd.Cryptogram
Cryptogram. It solves any cryptogram puzzle of the form like SEND+MORE=MONEY.
- Version:
- 4.10
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
It specifies the base of the numerical system to be used in the calculations.It specifies the file which contains the puzzle to be solved.String[]
int
It specifies how many lines of expressions can be inputed in one execution.int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static int[]
createWeights
(int length, int base) static void
It executes the program to solve any cryptographic puzzle.void
model()
It specifies a standard way of modeling the problem.Methods inherited from class org.jacop.examples.fd.ExampleFD
creditSearch, getSearch, getSearchVariables, getStore, printMatrix, search, searchAllAtOnce, searchAllOptimal, searchLDS, searchMasterSlave, searchMaxRegretOptimal, searchMiddle, searchMostConstrainedStatic, searchOptimal, searchSmallestDomain, searchSmallestMedian, searchSmallestMiddle, searchSmallestMin, searchWeightedDegree, searchWithMaxRegret, searchWithRestarts, shavingSearch
-
Field Details
-
maxInputLines
public int maxInputLinesIt specifies how many lines of expressions can be inputed in one execution. -
base
public int baseIt specifies the base of the numerical system to be used in the calculations. -
filename
It specifies the file which contains the puzzle to be solved. -
lines
-
noLines
public int noLines
-
-
Constructor Details
-
Cryptogram
public Cryptogram()
-
-
Method Details
-
createWeights
private static int[] createWeights(int length, int base) -
model
public void model()Description copied from class:ExampleFD
It specifies a standard way of modeling the problem. -
main
It executes the program to solve any cryptographic puzzle.- Parameters:
args
- no arguments read.
-