-
Notifications
You must be signed in to change notification settings - Fork 1
/
header.h
38 lines (25 loc) · 725 Bytes
/
header.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
#ifndef _header_h
#define _header_h
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
// prototypes for the methods in fpgrowth.c
void fpgrowth();
void readTransactions();
int getStringIndex(char *);
void readInput();
void sortTransactionsByFrequency(int *,int);
void generateFPTree(int *, int);
int isNodeCreated();
struct fptree* createNode();
struct fptree* getNode();
int searchFrequent1ItemSets(int);
void generateFrequentItemSets();
void generateRules();
void printItems();
void printTree(struct fptree *);
// prototypes for the methods in utils.c
void mergeSort(int *array,int *frequency,int low,int mid,int high);
void partition(int *array,int *frequency,int low,int high);
#endif