Ruby Implementation of Apriori Algorithm