public AStarMax(INode initialNode, IPrunningMethod prunningMethod, IGoalCheckMethod goalCheckMethod) : base(initialNode, prunningMethod, goalCheckMethod) { var maxComparer = new MaxComparer(); openList = new SortedList <int, INode>(maxComparer); openList.Add(initialNode); }
public Solver(INode initialNode, IPrunningMethod prunningMethod, IGoalCheckMethod goalCheckMethod) { Expended = 0; Generated = 0; AlgPruned = 0; ExternalPruned = 0; PrunningMethod = prunningMethod; GoalCheckMethod = goalCheckMethod; if (GoalCheckMethod.ValidGoal(initialNode)) { candidateGoalNode = initialNode; } }
public DfBnbMax(INode initialNode, IPrunningMethod prunningMethod, IGoalCheckMethod goalCheckMethod) : base(initialNode, prunningMethod, goalCheckMethod) { openList = new Stack <INode>(); openList.Push(initialNode); }