算法1:基于改进Eclat的反常项集挖掘算法

输入:数据集D的垂直数据表示形式 D vert [ P ] ,提升度阈值 λ

输出:反常项集AbNI

1

procedure AbNIMiner ( D vert [ P ] , P I , λ )

2

AbNI

3

for all m I occurring in D vert [ P ] in reverse order do//depth-first search

4

N P { n } //expanding the itemset N

5

if not isGenerator(N) then

6

continue

7

storeGenerator(N)

8

if | N | > 1 and wSup ( N , D ) λ 2 λ then

9

if a subset of Nhas been pruned then

10

continue

11

if wHlift ( N , D ) λ then

12

AbNI AbNI { N }

13

If λ 1 > min S N { wSupCnt ( S , D ) wSupCnt ( N \ S , D ) } then

14

continue

15

if wSupCnt ( N , D ) 1 ( wSupCnt N max λ ) 2 then

16

continue

17

D vert [ N ] //generating the next layer of the searching tree

18

for all m I in such that m > n do

19

C cov ( { n } , D ) cov ( { m } , D )

20

M N { m }

21

wSupCnt ( M , D ) ω C | C |

22

if wSupCnt ( N , D ) wSupCnt ( M , D ) λ 1 2 wSupCnt N max then