Study on different approach on data mining techniques, specifically affinity analysis such as FP-Growth, Apriori and Eclat
if has overlapping prefix:
else:
Repeat until there are not more items.
Additional a FP-Tree uses pointers connecting between nodes that have the same items creating a singly linked list.
These pointers are used to access individual items in the tree much faster.
There is only a single node, because all transactions have the same set of items.
Multiple nodes where every transaction has a unique set of items.
https://github.com/alextanhongpin/machine-learning-in-action/blob/master/fp_growth.ipynb