|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Reference example: IDA* pathfinding on a 2-D grid. More...
Go to the source code of this file.
Functions | |
| int | main () |
Reference example: IDA* pathfinding on a 2-D grid.
Model summary:
IDA* finds the shortest path (minimum number of steps) from a source cell to a goal cell, avoiding obstacle cells. Because the heuristic is admissible, the first complete solution is guaranteed optimal.
Build and run:
cmake --build build --target ida_star_grid_example./build/Examples/ida_star_grid_example Definition in file ida_star_grid_example.cc.
| int main | ( | ) |
Definition at line 215 of file ida_star_grid_example.cc.
References Aleph::divide_and_conquer_partition_dp(), Aleph::Exhausted, Aleph::LimitReached, print_path(), root(), and Aleph::StoppedOnSolution.