|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Searcher | +--BreadthFirstSearcher
BreadthFirstSearcher.java - a simple implementation of breadth-first search.
Constructor Summary | |
BreadthFirstSearcher()
|
Method Summary | |
boolean |
search(SearchNode rootNode)
search - given an initial node, perform
breadth-first search. |
Methods inherited from class Searcher |
getGoalNode, getNodeCount, printGoalPath |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BreadthFirstSearcher()
Method Detail |
public boolean search(SearchNode rootNode)
search
- given an initial node, perform
breadth-first search.search
in class Searcher
rootNode
- a SearchNode
value - the initial nodeboolean
value - whether or not goal node
was found
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |