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 TypeFieldDescriptionintIt 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[]intIt 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 voidIt executes the program to solve any cryptographic puzzle.voidmodel()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:ExampleFDIt specifies a standard way of modeling the problem. -
main
It executes the program to solve any cryptographic puzzle.- Parameters:
args- no arguments read.
-