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 Statesearch(State init)Do a search from theinitstate, 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:SearchDo a search from theinitstate, 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.
-
-