Esempio n. 1
0
 // adding list of words to dict-tree
 public void InsertWords(List <string> wordsToInsert)
 {
     foreach (string word in wordsToInsert)
     {
         Root.InsertValue(' ', word.ToLower());
     }
 }
Esempio n. 2
0
        // </DictLeaf>



        // building new tree with given words
        private DictLeaf BuildTree(List <string> words)
        {
            DictLeaf toRet = new DictLeaf(' ');

            foreach (string word in words)
            {
                toRet.InsertValue(' ', word);
            }
            return(toRet);
        }