示例#1
0
 public Balda(ILettersSet lettSer, int fieldSize = 5)
 {
     _commonTree         = new TrieTree(lettSer);
     _invertedPrefixTree = new TrieTree(lettSer);
     _lettSet            = lettSer;
     _fieldSize          = fieldSize;
     _grid    = GetEmptyGrid(fieldSize);
     _visited = new bool[fieldSize, fieldSize];
 }
示例#2
0
 public TrieTree(ILettersSet set)
 {
     _lettSet = set;
     _next    = new TrieTree[set.Count];
 }