-
Notifications
You must be signed in to change notification settings - Fork 0
/
MapNew.c
64 lines (44 loc) · 2.39 KB
/
MapNew.c
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/*NAME AND DATE GOES HERE.*/
/*Brandeis Map*/
/*Standard system stuff - these are the ONLY ones that may be used.*/
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
/*Path to the map folder; may need to change this.*/
#include "MapPATH.h"
/*MAY NOT be modified, but should be viewed.*/
#include "Map.h" /*Map data parameters, structures, and functions.*/
/*MAY NOT be modified, and there is no need view them:*/
#include "MapData.h" /*Functions to input the map data.*/
#include "MapInput.h" /*Functions to get user input.*/
#include "MapOutput.h" /*Functions to produce output.*/
/*Use this to get the time to travel along an edge.*/
#define EdgeCost(X) ( (TimeFlag) ? Time(X) : Elength[X] )
/*Use this to print a leg of a route or tour.*/
void PrintLeg(int edge);
/***************************************************************************************/
/*GRAPH ADJACENCY LIST DATA STRUCTURE */
/***************************************************************************************/
/***************************************************************************************/
/*HEAP DATA STRUCTURE */
/***************************************************************************************/
/***************************************************************************************/
/*Dijkstra Algorithm */
/*DijkstraFlag=1 to supress output when Dijkstra is called from tour code.) */
/***************************************************************************************/
void Dijkstra(int DijkstraFlag) {
}
/***************************************************************************************/
/*CAMPUS TOUR */
/***************************************************************************************/
#include "Tour.h"
/***************************************************************************************/
/*MAIN PROGRAM (don't modify) */
/***************************************************************************************/
int main() {
GetVertices();
GetEdges();
while (GetRequest()) {RouteOpen(); TourFlag ? Tour() : Dijkstra(0); RouteClose();}
return(0);
}