📄 occlist.cpp
字号:
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Class: OccList
Description: Used to store the occurrence list of a rooted
ordered pattern tree, for Asai's FREQT algorithm
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
#include "OccList.h"
//this prepares for OccLongList, i.e., the new occurrence may be a new leg,
void OccList::insert(int& newTid, const int& newLocation, int& motherId)
{
occurrence.push_back(make_pair(motherId,newLocation));
if ( lastTid != newTid ) { //if comes from a new transaction
lastTid = newTid;
mySupport++;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -