aima.search.framework
Class BestFirstSearch

java.lang.Object
  extended by aima.search.framework.PrioritySearch
      extended by aima.search.framework.BestFirstSearch
All Implemented Interfaces:
Search
Direct Known Subclasses:
AStarSearch, GreedyBestFirstSearch

public class BestFirstSearch
extends PrioritySearch


Field Summary
 
Fields inherited from class aima.search.framework.PrioritySearch
search
 
Constructor Summary
BestFirstSearch(QueueSearch search, EvaluationFunction ef)
           
 
Method Summary
protected  java.util.Comparator<Node> getComparator(Problem p)
           
 
Methods inherited from class aima.search.framework.PrioritySearch
getMetrics, search
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BestFirstSearch

public BestFirstSearch(QueueSearch search,
                       EvaluationFunction ef)
Method Detail

getComparator

protected java.util.Comparator<Node> getComparator(Problem p)
Specified by:
getComparator in class PrioritySearch