Algorithm Steps:
- Generate frequent 1-itemsets
- Repeat until no itemsets can be generated:
- Generate candidate itemsets.
- Candidate Pruning.
- Calculate support.
- Support pruning.
- Generate strong rules:
- Start with frequent 2-itemsets.
- Generate combinations of rules.
- Keep strong rules.
NOTE: If you have Transaction Data like:
[TID - Itemset]
1 - Tomato,Pepsi,Bread
2 - Pepsi,Bread
3 - Bread,Eggs
4 - Milk,Bread
5 - Milk,Eggs,Tomato
Then you should enter it in left Grid as:
[TID - Itemset]
1 - T,P,B
2 - P,B
3 - B,E
4 - M,B
5 - M,E,T