Apriori algorithm

This is an old revision of this page, as edited by Beefyt (talk | contribs) at 21:09, 9 July 2006 (References). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Template:Wikify-date

Apriori is an efficient association rule data mining algorithm, developed by Rakesh Agrawal, et al..

Apriori employs breadth-first search and uses a hash tree structure to count candidate item sets efficiently. The algorithm generates candidate item sets (patterns) of length from length item sets. Then, the patterns which have an infrequent sub pattern are pruned. According to the downward closure lemma, the generated candidate set contains all frequent length item sets. Following that, the whole transaction database is scanned to determine frequent item sets among the candidates. For determining frequent items in a fast manner, the algorithm uses a hash tree to store candidate itemsets. Note: This hash tree has item sets at the leaves and hash tables at internal nodes (Zaki, 99). Note that this is not the same kind of hash tree structure used in for instance p2p systems.

Apriori is designed to operate on databases containing transactions (eg: collection of items bought by customers or details of a website frequentation). Other algorithms are designed for finding association rules in data having no transactions (Winepi and Minepi), or having no timestamps (DNA sequencing).

Algorithm

Apriori 

  large 1-itemsets  
 
while  
 Generate 
for transactions  
 Subset 
for candidates  
 
 
 
return  

References

  • Agrawal R, Imielinski T, Swami AN. "Mining Association Rules between Sets of Items in Large Databases." SIGMOD. June 1993, 22(2), 207-16, pdf.
  • Agrawal R, Srikant R. "Fast Algorithms for Mining Association Rules", VLDB. Sep 12-15 1994, Chile, 487-99, pdf, ISBN 1-55860-153-8.
  • Mannila H, Toivonen H, Verkamo AI. "Efficient algorithms for discovering association rules." AAAI Workshop on Knowledge Discovery in Databases (SIGKDD). July 1994, Seattle, 181-92, ps.
  • Zaki MJ, Parthasarathy S, Ogihara M, Li W. "Parallel Algorithms for Discovery of Association Rules." Data Mining and Knowledge Discovery. Dec 1997, 1(4), 343-73, ps.