FP Growth Algorithm
FP Growth Algorithm
FP Growth Algorithm
Candidate Generation
“Can we design a method that mines the complete set of frequent itemsets
without candidate generation?”
FP-growth : Example
We re-examine the mining of transaction database, D
FP-growth : Example
We re-examine the mining of transaction database, D
The first scan of the database is the same as Apriori. Let the min_sup = 2
Sorted itemsets
1. Starting with last item in table and constructing its conditional pattern
base : A “subdatabase” which consists of the set of prefix paths in the FP-tree co-
occurring with the suffix pattern
2. Construct conditional FP-tree
3. Frequent itemsets are found by the concatenation of the suffix pattern with the
frequent patterns generated from a conditional FP-tree