数据挖掘中频繁模式挖掘的经典算法
源代码在线查看: data.h
/*---------------------------------------------------------------------- File : Data.h Contents : data set management Author : Bart Goethals Update : 4/4/2003 ----------------------------------------------------------------------*/ #include class Transaction { public: Transaction(int l) : length(l) {t = new int[l];} Transaction(const Transaction &tr); ~Transaction(){delete [] t;} int length; int *t; }; class Data { public: Data(char *filename, int t=0); ~Data(); Transaction *getNext(); private: Transaction *getNextAs(); Transaction *getNextAsFlat(); Transaction *getNextAsQuest(); Transaction *getNextBin(); FILE *in; char *fn; int current; int type; };