Exemple #1
0
 public Trie(IEnumerable <I> words, ITrieConverter <T, I> Converter)
 {
     _converter = Converter;
     _rootNode  = new TrieNode <T, I>(null, default(T), Converter);
     foreach (var word in words)
     {
         this.Insert(word);
     }
 }
Exemple #2
0
 public TrieNode(TrieNode <T, I> parent, T nodeChar, ITrieConverter <T, I> Converter)
 {
     _converter = Converter;
     _parent    = parent;
     _nodeChar  = nodeChar;
 }