Class Reduce

  • Direct Known Subclasses:
    Gener, Lift, Optimizer

    public class Reduce
    extends Object
    The Reduce object is used to remove gaps in a Trie which stores a dictionary.
    • 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