This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#ifndef __GRAPH_H__ | |
#define __GRAPH_H__ | |
#include <exception> | |
#include <vector> | |
#include "Queue.h" | |
using std::vector; | |
//Use int instead of size_t so it can be used as a 2d dir vector |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Source: http://fmi.wikidot.com/daa1 | |
*/ | |
#include <iostream> | |
#include <time.h> | |
typedef unsigned long long ull; | |
#define a(n) m1.pts[n] | |
#define b(n) m2.pts[n] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#ifndef __QUEUE_H__ | |
#define __QUEUE_H__ | |
#include <exception> | |
const int INIT_CAPACITY = 4; | |
template<class T> | |
class Queue |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#ifndef __QUEUE_H__ | |
#define __QUEUE_H__ | |
#include <exception> | |
const int INIT_CAPACITY = 4; | |
template<class T> | |
class Queue |
NewerOlder