Description: (1) L1 = find_frequent_1-itemsets(D) (2) for (k=2 Lk-1 ≠Φ k++) { (3) Ck = apriori_gen(Lk-1 ,min_sup) (4) for each transaction t ∈ D {//scan D for counts (5) Ct = subset(Ck,t) //get the subsets of t that are candidates (6) for each candidate c ∈ Ct (7) c.count++ (8) } (9) Lk ={c ∈ Ck|c.count≥min_sup} (10) } (11) return L= ∪ k Lk
To Search:
File list (Check if you may need any files):
用C#实现Apriori算法\ItemSet.cs
...................\Program.cs
...................\用C#实现Apriori算法(文档).doc
用C#实现Apriori算法