Apriori Algorithm
Apriori Algorithm Overview
Section titled “Apriori Algorithm Overview”The Apriori algorithm is one of the most well-known algorithms for association rule mining and frequent itemset discovery.
Algorithm Steps
Section titled “Algorithm Steps”- Generate 1-itemsets: Find all frequent 1-itemsets (single items)
- Generate k-itemsets: For k ≥ 2, generate candidate k-itemsets from frequent (k-1)-itemsets
- Prune candidates: Remove candidates that have infrequent subsets (Apriori property)
- Count support: Scan database to count support for remaining candidates
- Filter frequent: Keep only itemsets meeting minimum support threshold
- Repeat: Continue until no more frequent itemsets can be generated
The Apriori Property
Section titled “The Apriori Property”Any subset of a frequent itemset must also be frequent.
This property allows us to prune candidate itemsets efficiently.
Experimental Results
Section titled “Experimental Results”Our implementation includes comprehensive runtime tracking and visualization. See the Results page for detailed performance analysis and comparison with FP-Growth.

Complete analysis visualization showing runtime breakdown, frequent itemsets by size, support and confidence distributions, top itemsets, and transaction size distribution.
Related Algorithms
Section titled “Related Algorithms”The FP-Growth algorithm addresses many of Apriori’s limitations by using a tree-based approach that avoids candidate generation. See the FP-Growth Algorithm page for details on this alternative approach.