Symphony 1.0
|
Breadth-first search algorithm implementation. More...
#include <search.h>
Public Member Functions | |
BreadthFirstSearch (Problem *problem) | |
std::shared_ptr< Node > | search () override |
Breadth-first search algorithm implementation. The breadth-first search algorithm explores a graph by visiting all the neighbor nodes at the present depth prior to moving on to the nodes at the next depth level. | |
~BreadthFirstSearch () | |
Public Member Functions inherited from Search | |
Search (Problem *problem) | |
virtual | ~Search () |
Additional Inherited Members | |
Public Attributes inherited from Search | |
Problem * | problem |
Breadth-first search algorithm implementation.
This class implements the breadth-first search algorithm, which explores a graph by visiting all the neighbor nodes at the present depth prior to moving on to the nodes at the next depth level.
|
inline |
Definition at line 69 of file search.h.
BreadthFirstSearch::~BreadthFirstSearch | ( | ) |
Definition at line 26 of file search.cpp.
|
overridevirtual |
Breadth-first search algorithm implementation. The breadth-first search algorithm explores a graph by visiting all the neighbor nodes at the present depth prior to moving on to the nodes at the next depth level.
Implements Search.
Definition at line 45 of file search.cpp.
References Problem::actions(), Problem::goal_test(), Problem::heuristic(), Problem::initial_state(), and Search::problem.