Beispiel #1
0
 public Trie()
 {
     root = new TrieNode('\0');
     root.level = -1;
 }
Beispiel #2
0
 public TrieQuad(TrieNode tn, int l, int u, int qi, int si, int ed)
 {
     node = tn;
     lower = l;
     upper = u;
     queryIndex = qi;
     stringIndex = si;
     editDistance = ed;
 }
Beispiel #3
0
 public void AddChild(char c)
 {
     if (!this.children.ContainsKey(c))
     {
         this.children.Add(c, new TrieNode(c));
         this.children[c].level = this.level + 1;
         this.children[c].parent = this;
     }
 }