FP Tree Growth: Frequent Pattern Growth Algorithm
FP Tree Growth: Frequent Pattern Growth Algorithm
FP Tree
Frequent Pattern Tree is a tree-like structure that is made with the initial item sets of the database. The purpose
of the FP tree is to mine the most frequent pattern. Each node of the FP tree represents an item of the itemset.
The root node represents null while the lower nodes represent the item sets. The association of the nodes with the
lower nodes that is the item sets with the other item sets are maintained while forming the tree.
Example: Create Association Rules by using FP-Growth algorithm with minimum support
count = 3.
T1 I1,I2,I3
T2 I2,I3,I4
T3 I4,I5
T4 I1,I2,I4
T5 I1,I2,I3,I5
T6 I1,I2,I3,I4
Solution:
Step No 1: Count of each item
Item Count
I1 4
I2 5
I3 4
I4 4
I5 2
Item Count
I2 5
I1 4
I3 4
I4 4