Interface SearchAlgorithm.SearchWithTree
- All Superinterfaces:
SearchAlgorithm
- All Known Implementing Classes:
BstarBasic,BstarBasicDB
- Enclosing interface:
SearchAlgorithm
This represents a search algorithm which can search a given tree and modify it during search.
Methods under this category can perform a search given an arbitrary tree, without making their
own tree on the side internally.
-
Nested Class Summary
Nested classes/interfaces inherited from interface algorithm.SearchAlgorithm
SearchAlgorithm.Limits, SearchAlgorithm.SearchResult<N extends GameTreeNode<N,P>, P extends IGamePosition<P>>, SearchAlgorithm.SearchWithTable, SearchAlgorithm.SearchWithTree -
Method Summary
Modifier and TypeMethodDescriptiondefault <N extends GameTreeNode<N,P>, P extends IGamePosition<P>>
SearchAlgorithm.SearchResult<N, P> searchWithTree(N root, SearchAlgorithm.Limits space_limit, MetricKeeper... metrics) Initiates the search of the provided game tree without time limits.default <N extends GameTreeNode<N,P>, P extends IGamePosition<P>>
SearchAlgorithm.SearchResult<N, P> searchWithTree(N root, MetricKeeper... metrics) Initiates the search of the provided game tree without time or spatial limits.<N extends GameTreeNode<N,P>, P extends IGamePosition<P>>
SearchAlgorithm.SearchResult<N, P> searchWithTree(N root, Duration time_limit, SearchAlgorithm.Limits space_limit, MetricKeeper... metrics) Initiates the search of the provided game tree with a given time limit and spatial limit.default <N extends GameTreeNode<N,P>, P extends IGamePosition<P>>
SearchAlgorithm.SearchResult<N, P> searchWithTree(N root, Duration time_limit, MetricKeeper... metrics) Initiates the search of the provided game tree without spatial limits.Methods inherited from interface algorithm.SearchAlgorithm
search, search, search, search
-
Method Details
-
searchWithTree
<N extends GameTreeNode<N,P>, P extends IGamePosition<P>> SearchAlgorithm.SearchResult<N,P> searchWithTree(N root, Duration time_limit, SearchAlgorithm.Limits space_limit, MetricKeeper... metrics) Initiates the search of the provided game tree with a given time limit and spatial limit.- Type Parameters:
N- The type ofGameTreeNodewhich is used for executing the searchP- The type ofIGamePositionwhich represents the type of game to be searched- Parameters:
root- root of the tree to be searchedtime_limit- maximum time spent in the algorithmspace_limit- maximum node expansions, evaluations, and nodes saved in memory used by the algorithmmetrics- an array ofMetricKeeperobjects to keep track of evaluations, expansions, and node storage performed during the search, can be empty- Returns:
- result from the search
-
searchWithTree
default <N extends GameTreeNode<N,P>, P extends IGamePosition<P>> SearchAlgorithm.SearchResult<N,P> searchWithTree(N root, SearchAlgorithm.Limits space_limit, MetricKeeper... metrics) Initiates the search of the provided game tree without time limits.- Type Parameters:
N- The type ofGameTreeNodewhich is used for executing the searchP- The type ofIGamePositionwhich represents the type of game to be searched- Parameters:
root- root of the tree to be searchedspace_limit- the spatial limits on this searchmetrics- an array ofMetricKeeperobjects to keep track of evaluations, expansions, and node storage performed during the search, can be empty- Returns:
- result from the search
-
searchWithTree
default <N extends GameTreeNode<N,P>, P extends IGamePosition<P>> SearchAlgorithm.SearchResult<N,P> searchWithTree(N root, Duration time_limit, MetricKeeper... metrics) Initiates the search of the provided game tree without spatial limits.- Type Parameters:
N- The type ofGameTreeNodewhich is used for executing the searchP- The type ofIGamePositionwhich represents the type of game to be searched- Parameters:
root- root of the tree to be searchedtime_limit- maximum time spent in the algorithmmetrics- an array ofMetricKeeperobjects to keep track of evaluations, expansions, and node storage performed during the search, can be empty- Returns:
- result from the search
-
searchWithTree
default <N extends GameTreeNode<N,P>, P extends IGamePosition<P>> SearchAlgorithm.SearchResult<N,P> searchWithTree(N root, MetricKeeper... metrics) Initiates the search of the provided game tree without time or spatial limits.- Type Parameters:
N- The type ofGameTreeNodewhich is used for executing the searchP- The type ofIGamePositionwhich represents the type of game to be searched- Parameters:
root- root of the tree to be searchedmetrics- an array ofMetricKeeperobjects to keep track of evaluations, expansions, and node storage performed during the search, can be empty- Returns:
- result from the search
-