Class Cryptogram

java.lang.Object
org.jacop.examples.fd.ExampleFD
org.jacop.examples.fd.Cryptogram

public class Cryptogram extends ExampleFD
Cryptogram. It solves any cryptogram puzzle of the form like SEND+MORE=MONEY.
Version:
4.8
  • Field Details

    • 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 String filename
      It specifies the file which contains the puzzle to be solved.
    • lines

      public String[] 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.
      Specified by:
      model in class ExampleFD
    • main

      public static void main(String[] args)
      It executes the program to solve any cryptographic puzzle.
      Parameters:
      args - no arguments read.