-
Notifications
You must be signed in to change notification settings - Fork 1
/
eclat.h
40 lines (31 loc) · 1.06 KB
/
eclat.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
#ifndef __eclat_H
#define __eclat_H
#include <vector>
#include <iostream>
using namespace std;
typedef vector<int> idlist;
//diffset types: diffin - use input db in diff format, diff2 - use diff for
//F2, diff - use diff after F2, nodiff - do not use diff
enum diff_vals {nodiff, diff, diff2, diffin};
enum sort_vals {nosort, incr, decr, incr_noclass};
enum subset_vals {equals, subset, superset, notequal};
enum alg_vals {eclat, charm, basicmax, maxcharm, colex};
enum prune_vals {noprune, prune}; //do candidate pruning?
//cnone - do not eliminate non-closed
//chash - use hash based technique, cmax -- use intersections
enum closed_vals {cnone, chash, cmax};
//externs vars
extern double MINSUP_PER;
extern int MINSUPPORT;
extern int DBASE_MAXITEM;
extern int DBASE_NUM_TRANS;
extern bool output;
extern bool output_idlist;
extern diff_vals diff_type;
extern diff_vals max_diff_type;
extern sort_vals sort_type;
extern alg_vals alg_type;
extern closed_vals closed_type;
extern prune_vals prune_type;
extern ostream & operator<<(ostream& fout, idlist &vec);
#endif