IDAStarIterativeDeepeningAStarT Method
Iteratives the deepening A*.
Namespace: SimpleAIPlayerAssembly: SimpleAIPlayer (in SimpleAIPlayer.dll) Version: 1.0.0+d0f5e2a7a5f4bb0431970f279d2f79d24b15d256
public static Tuple<List<IEdge<T>>?, int> IterativeDeepeningAStar<T>(
T start,
T goal,
int maxDepth = -1
)
where T : Object, INode<T>
- start T
- The starting node.
- goal T
- The goal node.
- maxDepth Int32 (Optional)
- The maximum depth the algorithm should go to. Negative values indicate infinite depth.
- T
- The type of the nodes of the graph
TupleListIEdgeT,
Int32- (shortest path, length) if the path was found
- (null, bound) where bound is the estimated length of shortest path, if the goal wasn't reached within the given maxDepth.
- (null, -1) if there doesn't exist a path between >start and goal.