An improved Apriori algorithm