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 GreedyLoopMax(INode initialNode, IGoalCheckMethod goalCheckMethod, int loops) : base(initialNode, new NoPrunning(), goalCheckMethod)
        {
            var maxComparer = new MaxComparer();

            _initialNode = initialNode;
            _iterationsSinceLastImprovement = 0;
            _lastBestG = 0;
            _loops     = loops;
        }
Example #3
0
        public GreedyMax(INode initialNode, IGoalCheckMethod goalCheckMethod) : base(initialNode, new NoPrunning(), goalCheckMethod)
        {
            var maxComparer = new MaxComparer();

            _head = initialNode;
        }