#include <map>
#include "definitions.h"
#include <memory>
Go to the source code of this file.
◆ SearchAlgorithmIndex
Enumerator |
---|
BREADTH_FIRST_SEARCH | |
UNIFORM_COST_SEARCH | |
A_STAR | |
BEAM_SEARCH | |
Definition at line 102 of file search.h.
◆ create_search()
Factory method to create a search object based on the specified search algorithm.
- Parameters
-
search_algorithm_index | The index of the search algorithm to use. |
problem | The problem to solve. |
- Returns
- A pointer to the created search object.
Definition at line 13 of file search.cpp.
13 {
14 switch (search_algorithm_index) {
21 default:
22 return nullptr;
23 }
24}
Breadth-first search algorithm implementation.
References A_STAR, BEAM_SEARCH, and BREADTH_FIRST_SEARCH.
Referenced by run().