Research Article
Tunnel Security Management Based on Association Rule Mining under Hadoop Platform
Table 1
Optimization algorithm for association rules.
| (1) for each lx Lk- 1; | (2) { | (3) for each ly lk- 1; | (4) { | (5) if (lx [1] = ly [1]∧lx [2] = ly [2]∧lx [k- 2] = ly [k-2]∧lx [k- 1]<ly [ k- 1]) | (6) { | (7) c = lx ly; //Complete the concatenation of the two item sets; | (8) ck = c ck; | (9) } | (10) else break; | (11) } | (12) } | (13) end for | (14) return ck//Returns the item sets of generated by the join; |
|
|