Question: Let c c be a candidate itemset in C k C k generated by the Apriori algorithm. How many length- ( k 1 )

Let c be a candidate itemset in Ck generated by the Apriori algorithm. How many length- (k1) subsets do we need to check in the prune step? Per your previous answer, can you give an improved version of procedure has_infrequent_subset in Fig. 4.4?

Fig. 4.4

Algorithm: Apriori. Find frequent itemsets using an iterative level-wise approach based on candidate

Algorithm: Apriori. Find frequent itemsets using an iterative level-wise approach based on candidate generation Input: D, a database of transactions; min_sup, the minimum support count threshold. Output: L, frequent itemsets in D. Method: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) } (11) return L = UkLk; (1) (2) (3) (4) (5) (6) L = find_frequent_1-itemsets(D); for (k =2; Lk-10; k++) { Ck apriori_gen(Lk-1); procedure apriori_gen(Lk-1: frequent (k-1)-itemsets) for each itemset / Lk-1 (1) (2) for each transaction t E D { // scan D for counts Ct = subset(Ck, 1); // get the subsets of t that are candidates for each candidate c Ct c.count++; (3) (4) } Lk={ce Clc.count > min_sup} for each itemset 12 Lk-1 if ( [1] =1[1])^(1/[2] = 1[2]) A... ^ (1[k-2] = 1[k-2]) ^ (1[k - 1]

Step by Step Solution

3.40 Rating (156 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To improve the hasinfrequent subset procedure in the Apriori algorithm we can optimize the process o... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Data Mining Concepts And Techniques Questions!