-
Notifications
You must be signed in to change notification settings - Fork 4
/
utilities.h
44 lines (29 loc) · 1.03 KB
/
utilities.h
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
#ifndef UTILITIES
#define UTILITIES
#include <utility>
#include <vector>
#include <list>
#include <limits>
#include "FFD.h"
#define MAX_INT numeric_limits<int>::max()
#define MIN_INT numeric_limits<int>::min()
using namespace std;
void printCG(vector<vector<int>*>&);
void printVect(vector<int>&);
int min(int,int);
int max_item(vector<int>&);
int* nth(list<int*>*, int);
vector<vector<int>*> duplicate(vector<vector<int>*> &,int);
void overwrite(vector<vector<int>*>&,vector<vector<int>*>&,int);
void substitute(vector<vector<int>*>&,vector<vector<int>*>&,int);
bool comparePair(pair<int,int>, pair<int,int>);
bool group_quality(int *, vector<int> &,
vector<int> &);
int* bestCutting(vector<int>&,vector<int>&,vector<int>&);
vector<vector<int>*> genInitSol(vector<int> &,
vector<int> &,
vector<int> &,
vector<int> &,
vector<int> &,
vector<int> &);
#endif