ExamplesJaCoP
Class Cryptogram

java.lang.Object
  extended by ExamplesJaCoP.Example
      extended by ExamplesJaCoP.Cryptogram

public class Cryptogram
extends Example

Cryptogram. It solves any cryptogram puzzle of the form like SEND+MORE=MONEY.

Author:
Radoslaw Szymanek

Field Summary
 int base
          It specifies the base of the numerical system to be used in the calculations.
 java.lang.String filename
          It specifies the file which contains the puzzle to be solved.
 int maxInputLines
          It specifies how many lines of expressions can be inputed in one execution.
 
Fields inherited from class ExamplesJaCoP.Example
cost, search, store, vars
 
Constructor Summary
Cryptogram()
           
 
Method Summary
static void main(java.lang.String[] args)
          It executes the program to solve any cryptographic puzzle.
 void model()
          It specifies a standard way of modeling the problem.
 
Methods inherited from class ExamplesJaCoP.Example
creditSearch, getSearch, getSearchVariables, getStore, printMatrix, search, searchAllAtOnce, searchAllOptimal, searchLDS, searchMasterSlave, searchMaxRegretOptimal, searchMiddle, searchMostConstrainedStatic, searchOptimal, searchSmallestDomain, searchSmallestMedian, searchSmallestMiddle, searchSmallestMin, searchWeightedDegree, searchWithMaxRegret, searchWithRestarts, shavingSearch
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maxInputLines

public int maxInputLines
It specifies how many lines of expressions can be inputed in one execution.


base

public int base
It specifies the base of the numerical system to be used in the calculations.


filename

public java.lang.String filename
It specifies the file which contains the puzzle to be solved.

Constructor Detail

Cryptogram

public Cryptogram()
Method Detail

model

public void model()
Description copied from class: Example
It specifies a standard way of modeling the problem.

Specified by:
model in class Example

main

public static void main(java.lang.String[] args)
It executes the program to solve any cryptographic puzzle.

Parameters:
args - no arguments read.