Research Article
Feasibility Analysis Model of Transformation from Real Economy to Virtual Economy Based on Association Rule Algorithm
Algorithm 1
The pseudocode of the Apriori algorithm.
| (1) | F1 = {Frequent 1-length item sets}; | | (2) | for (k = 2, Fk−1<>∅, k++) | | (3) | { | | (4) | Ck = {generation of candidates k based on Apriorigen (Fk−1)} | | (5) | for all transactions | | (6) | { | | (7) | Ct = subset (Ck, t)//Removal of redundant rules | | (8) | for all candidates c | | (9) | c.count++ | | (10) | } | | (11) | Fk = [c|c.count ≥ minsupp]//Selection of candidates | | (12) | } | | (13) | Result |
|