Package libai.search
Class BFS
- java.lang.Object
-
- libai.search.BFS
-
-
Constructor Summary
Constructors Constructor Description BFS()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description State
search(State init)
Do a search from theinit
state, until the current state becomes a solution (State.isSolution()) If the algorithm finds a solution return the current state as the solution.
-
-
-
Method Detail
-
search
public State search(State init)
Description copied from interface:Search
Do a search from theinit
state, until the current state becomes a solution (State.isSolution()) If the algorithm finds a solution return the current state as the solution. That internal representation of the state must contain all the information needed to reconstruct the path or any other operation needed by the user. If there is no solution this method must return null.
-
-