com.thesett.aima.search.util.informed.IDAStarSearch Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aima Show documentation
Show all versions of aima Show documentation
Library of code developed from 'Artificial Intelligence a Modern Approach', Prentice Hall.
/*
* Copyright The Sett Ltd, 2005 to 2014.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.thesett.aima.search.util.informed;
import java.util.Queue;
import com.thesett.aima.search.SearchNode;
import com.thesett.aima.search.Traversable;
import com.thesett.aima.search.impl.IterativeBoundAlgorithm;
import com.thesett.aima.search.spi.BoundProperty;
import com.thesett.common.util.StackQueue;
/**
* Implements an iterative deepening A* search. This proceeds depth first but is bounded by iteratively increasing
* values of f (f = heuristic + cost).
*
* There are two version of this search. One increases the f-value in fixed increments rather than always taking the
* next largest. Use the constructor that accepts an epsilon-value to use this version. The other will go to the next
* largest f-value seen beyond the f-value bound on the previous iteration. If f only increases a few times accross a
* search space this may be a usuable search. If it is different for every node then it will need to examine N^2 nodes
* so it is too slow.
*
*
CRC Card
* Responsibilities Collaborations
* Perform an optimal complete iterative deepening A* search.
* Perform an epsilon admissable iterative deepening A* search.
*
*
* @author Rupert Smith
* @todo Complete this comment about epsilon-admissable searches. If the heuristic is admissable then the IDA* search
* that uses the next f-value will be optimal and comlete. If an epsilon value is set then it is said to be
* epsilon-admissable which means the the cost of the solution will be???
*/
public class IDAStarSearch© 2015 - 2025 Weber Informatics LLC | Privacy Policy