Package mazealgo.model.algorithms.search
Class DepthFirstSearch
java.lang.Object
mazealgo.model.algorithms.search.ASearchingAlgorithm
mazealgo.model.algorithms.search.DepthFirstSearch
- All Implemented Interfaces:
ISearchingAlgorithm
Depth First Search. Uses an explicit LIFO stack instead of recursion
so it can handle large mazes (e.g. 1000x1000) without blowing the
call stack. The path it finds is some path to the goal, not
necessarily the shortest.
-
Field Summary
Fields inherited from class mazealgo.model.algorithms.search.ASearchingAlgorithm
numberOfNodesEvaluated -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class mazealgo.model.algorithms.search.ASearchingAlgorithm
buildSolution, getNumberOfNodesEvaluated, onNodeEvaluated, reset, setNodeEvaluatedListener
-
Constructor Details
-
DepthFirstSearch
public DepthFirstSearch()
-
-
Method Details
-
solve
-
getName
-