C++ implementation of the A* algorithm for the AI course (Autumn 2014) at Uppsala University.
- Clone repository.
- Follow instructions given in "Step by Step Instructions for DM.pdf" in the repo directory. And then it should be okay.
- Node: Represents a node of the graph.
- Edge: Represents an edge of the graph.
- GameNodesTypes: List of nodes.
- GameEdgesCosts: Costs of all edges. (integers)
- VanList: List of vans.
- DeliveryList: List of deliveries (and their info).
- GameEnv: List of nodes and costs.
Use #include <algorithm>
.
This library contains several useful functions such as find
, foreach
,mix/max_element
and more.
See here.
Side note: It might be possible to use functional
(from stdlib) to pass the heuristic
function as a parameter of the algorithm.
See here.