| 算法1:基于改进Eclat的反常项集挖掘算法 | ||||
|
| 输入:数据集D的垂直数据表示形式 ,提升度阈值 | |||
|
| 输出:反常项集AbNI | |||
| 1 | procedure | |||
| 2 |
|
| ||
| 3 |
| for all occurring in in reverse order do//depth-first search | ||
| 4 |
|
| //expanding the itemset N | |
| 5 |
|
| if not isGenerator(N) then | |
| 6 |
|
|
| continue |
| 7 |
|
| storeGenerator(N) | |
| 8 |
|
| if and then | |
| 9 |
|
|
| if a subset of Nhas been pruned then |
| 10 |
|
|
| continue |
| 11 |
|
|
| if then |
| 12 |
|
|
|
|
| 13 |
|
|
| If then |
| 14 |
|
|
| continue |
| 15 |
|
| if then | |
| 16 |
|
|
| continue |
| 17 |
|
| //generating the next layer of the searching tree | |
| 18 |
|
| for all in such that do | |
| 19 |
|
|
|
|
| 20 |
|
|
|
|
| 21 |
|
|
|
|
| 22 |
|
|
| if then |