示例#1
0
        public void AddSet(SortedSet <Comp> comps)
        {
            if (comps == null || comps.Count == 0)
            {
                return;
            }
            Comp first = comps.First();

            comps.Remove(first);
            MyTrieNode newChild = AddChild(first);

            if (newChild == null)
            {
                return;
            }
            if (comps.Count > 0)
            {
                newChild.AddSet(comps);
            }
            else
            {
                newChild.IsTerminateSet = true;
            }
        }
 public override void AddAction(SortedSet <Comp> action)
 {
     root.AddSet(action);
 }