Interface SearchAlgorithm.SearchWithTable
- All Superinterfaces:
SearchAlgorithm
- Enclosing interface:
SearchAlgorithm
This represents a search algorithm which primarily stores search results in a transposition table.
However, this also works for algorithms which are only supplemented by transposition tables.
-
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 <P extends IGamePosition<P>>
SearchAlgorithm.SearchResult<?, P> search(P root, Table table, SearchAlgorithm.Limits space_limit, MetricKeeper... metrics) Initiates the search of the provided game tree without time limits.default <P extends IGamePosition<P>>
SearchAlgorithm.SearchResult<?, P> search(P root, Table table, MetricKeeper... metrics) Initiates the search of the provided game tree without time or spatial limits.<P extends IGamePosition<P>>
SearchAlgorithm.SearchResult<?, P> search(P root, Table table, 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 <P extends IGamePosition<P>>
SearchAlgorithm.SearchResult<?, P> search(P root, Table table, Duration time_limit, MetricKeeper... metrics) Initiates the search of the provided game tree without spatial limits.default <P extends IGamePosition<P>>
SearchAlgorithm.SearchResult<?, P> search(P 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.Methods inherited from interface algorithm.SearchAlgorithm
search, search, search
-
Method Details
-
search
<P extends IGamePosition<P>> SearchAlgorithm.SearchResult<?,P> search(P root, Table table, 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:
P- The type ofIGamePositionwhich represents the type of game to be searched- Parameters:
root- root of the tree to be searchedtable- table to use during search, can be non-emptytime_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
-
search
default <P extends IGamePosition<P>> SearchAlgorithm.SearchResult<?,P> search(P root, Table table, SearchAlgorithm.Limits space_limit, MetricKeeper... metrics) Initiates the search of the provided game tree without time limits.- Type Parameters:
P- The type ofIGamePositionwhich represents the type of game to be searched- Parameters:
root- root of the tree to be searchedtable- table to use during search, can be non-emptyspace_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
-
search
default <P extends IGamePosition<P>> SearchAlgorithm.SearchResult<?,P> search(P root, Table table, Duration time_limit, MetricKeeper... metrics) Initiates the search of the provided game tree without spatial limits.- Type Parameters:
P- The type ofIGamePositionwhich represents the type of game to be searched- Parameters:
root- root of the tree to be searchedtable- table to use during search, can be non-emptytime_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
-
search
default <P extends IGamePosition<P>> SearchAlgorithm.SearchResult<?,P> search(P root, Table table, MetricKeeper... metrics) Initiates the search of the provided game tree without time or spatial limits.- Type Parameters:
P- The type ofIGamePositionwhich represents the type of game to be searched- Parameters:
root- root of the tree to be searchedtable- table to use during search, can be non-emptymetrics- an array ofMetricKeeperobjects to keep track of evaluations, expansions, and node storage performed during the search, can be empty- Returns:
- result from the search
-
search
default <P extends IGamePosition<P>> SearchAlgorithm.SearchResult<?,P> search(P 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. Also creates a table to search with, with the maximum possible size according to the spatial limit and available memory.- Specified by:
searchin interfaceSearchAlgorithm- Type Parameters:
P- 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
-