Exemplo n.º 1
0
 public Trie(Alphabet alphabet)
 {
     this.Alphabet = alphabet ?? throw new ArgumentNullException(nameof(alphabet));
 }
Exemplo n.º 2
0
 public Node(Alphabet alphabet, Object value)
 {
     this.Next  = new AST.CompactBoundedArray <Node>(alphabet.MinChar, alphabet.MaxChar);
     this.Value = value;
 }
        private const Int32 CUT_OFF = 15; // Cutoff for small subarrays.

        public static void Sort(String[] array, Alphabet alphabet)
        {
            String[] aux = new String[array.Length];

            Sort(array, aux, 0, array.Length - 1, 0, alphabet);
        }