protected override void AddNodes(IQueue <T> fringe, T node, ISearchProblem <A, S, C> problem) { if (!closed.Contains(node.State)) { closed.Add(node.State); fringe.AddRange(Expander.Expand(problem, node)); } }
/// <summary> /// Generic tree search. See page 72 in Russell and Norvig /// </summary> protected override void AddNodes(IQueue <T> fringe, T node, ISearchProblem <A, S, C> problem) { fringe.AddRange(Expander.Expand(problem, node)); }
/// <summary> /// Generic tree search. See page 72 in Russell and Norvig /// </summary> protected override void AddNodes(IQueue <SpriteGeneratorSearchNode> fringe, SpriteGeneratorSearchNode node, ISearchProblem <CodeSequence, SpriteGeneratorState, IntegerCost> problem) { fringe.AddRange(Expander.Expand(problem, node)); }