Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 386 Bytes

example-graphs_astar_example.md

File metadata and controls

18 lines (14 loc) · 386 Bytes

\page graphs_astar_example Example: graphs_astar_example

Demo for the A* generic solver:

Example console output:

Input an integer number to solve a problem, or "e" to end.
761
An optimal solution has been found:
	2 coins of 2 piastres.
	0 coins of 7 piastres.
	2 coins of 8 piastres.
	39 coins of 19 piastres.

C++ example source code: \include graphs_astar_example/test.cpp