Class Reduce

  • Direct Known Subclasses:
    Gener, Lift, Optimizer

    public class Reduce
    extends java.lang.Object
    The Reduce object is used to remove gaps in a Trie which stores a dictionary.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      (package private) class  Reduce.Remap
      This class is part of the Egothor Project
    • Constructor Summary

      Constructors 
      Constructor Description
      Reduce()
      Constructor for the Reduce object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Trie optimize​(Trie orig)
      Optimize (remove holes in the rows) the given Trie and return the restructured Trie.
      (package private) java.util.List<Row> removeGaps​(int ind, java.util.List<Row> old, java.util.List<Row> to, int[] remap)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Reduce

        public Reduce()
        Constructor for the Reduce object.
    • Method Detail

      • optimize

        public Trie optimize​(Trie orig)
        Optimize (remove holes in the rows) the given Trie and return the restructured Trie.
        Parameters:
        orig - the Trie to optimize
        Returns:
        the restructured Trie
      • removeGaps

        java.util.List<Row> removeGaps​(int ind,
                                       java.util.List<Row> old,
                                       java.util.List<Row> to,
                                       int[] remap)