Class Cryptogram


  • public class Cryptogram
    extends ExampleFD
    Cryptogram. It solves any cryptogram puzzle of the form like SEND+MORE=MONEY.
    Version:
    4.8
    • 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.
      • lines

        public java.lang.String[] lines
      • noLines

        public int noLines
    • Constructor Detail

      • Cryptogram

        public Cryptogram()
    • Method Detail

      • 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​(java.lang.String[] args)
        It executes the program to solve any cryptographic puzzle.
        Parameters:
        args - no arguments read.