Implement frequent pattern mining algorithm such as Apriori, FP-Growth and so on.