blob: 38e168bc9a5628b917ec93ff71f97dc34aef5da6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
// This is the CPP file you will edit and turn in.
// Also remove these comments here and add your own, along with
// comments on every function and on complex code sections.
// TODO: write comment header for this file; remove this comment
#include "costs.h"
#include "trailblazer.h"
// TODO: include any other headers you need; remove this comment
using namespace std;
vector<Node *> depthFirstSearch(BasicGraph& graph, Vertex* start, Vertex* end) {
// TODO: implement this function; remove these comments
// (The function body code provided below is just a stub that returns
// an empty vector so that the overall project will compile.
// You should remove that code and replace it with your implementation.)
vector<Vertex*> path;
return path;
}
vector<Node *> breadthFirstSearch(BasicGraph& graph, Vertex* start, Vertex* end) {
// TODO: implement this function; remove these comments
// (The function body code provided below is just a stub that returns
// an empty vector so that the overall project will compile.
// You should remove that code and replace it with your implementation.)
vector<Vertex*> path;
return path;
}
vector<Node *> dijkstrasAlgorithm(BasicGraph& graph, Vertex* start, Vertex* end) {
// TODO: implement this function; remove these comments
// (The function body code provided below is just a stub that returns
// an empty vector so that the overall project will compile.
// You should remove that code and replace it with your implementation.)
vector<Vertex*> path;
return path;
}
vector<Node *> aStar(BasicGraph& graph, Vertex* start, Vertex* end) {
// TODO: implement this function; remove these comments
// (The function body code provided below is just a stub that returns
// an empty vector so that the overall project will compile.
// You should remove that code and replace it with your implementation.)
vector<Vertex*> path;
return path;
}
|