-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommon.h
More file actions
36 lines (30 loc) · 781 Bytes
/
Copy pathcommon.h
File metadata and controls
36 lines (30 loc) · 781 Bytes
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
//
// Created by kostas on 4/20/19.
//
#ifndef QTD_COMMON_H
#define QTD_COMMON_H
#include <vector>
#define BILLION 1000000000LL
#define ulli unsigned long long int
timespec startT, endT;
using namespace std;
void startTimer(){
clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &startT);
}
double endTimer(){
clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &endT);
return endT.tv_sec * BILLION + endT.tv_nsec - (startT.tv_sec * BILLION + startT.tv_nsec);
}
vector<int> dfsIDs; //the array used to relabel T2
vector<vector<int>> C; //the C table
int q; //number of internal nodes in T1
int n; //number of leaves
int totalWhite;
struct color{
int redMin, redMax;
int blueMin, blueMax;
int greenMin, greenMax;
};
color coloring;
ulli sharedTriplets;
#endif //QTD_COMMON_H