コード例 #1
0
ファイル: Trie.cs プロジェクト: jbfitz/EECS405
 public Trie()
 {
     root = new TrieNode('\0');
     root.level = -1;
 }
コード例 #2
0
ファイル: TopKRangeSearch.cs プロジェクト: jbfitz/EECS405
 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;
 }
コード例 #3
0
ファイル: Trie.cs プロジェクト: jbfitz/EECS405
 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;
     }
 }