From 0c39051ba80f04b1177833a006f2d442a7170b56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Thu, 3 Dec 2020 17:11:43 +0100 Subject: add initial files l8 --- labb8/src/trailblazer.cpp | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100755 labb8/src/trailblazer.cpp (limited to 'labb8/src/trailblazer.cpp') diff --git a/labb8/src/trailblazer.cpp b/labb8/src/trailblazer.cpp new file mode 100755 index 0000000..38e168b --- /dev/null +++ b/labb8/src/trailblazer.cpp @@ -0,0 +1,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 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 path; + return path; +} + +vector 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 path; + return path; +} + +vector 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 path; + return path; +} + +vector 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 path; + return path; +} -- cgit v1.2.1