- Year not given
Improving efficiency of Apriori
Short answer
Hash-based counting reduces 2-itemset candidates; transaction reduction skips barren transactions; partitioning scans only twice; sampling works on a subset. Dynamic itemset counting adjusts scans. Vertical data format (TID-lists) and FP-growth avoid candidate generation entirely.
Write a short note on improving the efficiency of apriori algorithm.
The basic Apriori algorithm is slow because it scans the database many times and generates and counts a huge number of candidate itemsets. Several techniques improve its efficiency.
- Hash-based itemset counting (DHP): while counting 1-itemsets, hash every 2-itemset of each transaction into buckets of a hash table with bucket counts. A candidate 2-itemset whose bucket count is below min_sup cannot be frequent and is removed, which cuts C₂ greatly.
- Transaction reduction: a transaction that contains no frequent k-itemset cannot contain any frequent (k+1)-itemset, so it is marked or removed from later scans.
- Partitioning: divide the database into n partitions that fit in memory. Find the local frequent itemsets in each partition; any globally frequent itemset must be frequent in at least one partition. Only two scans of the database are needed (second scan counts the union of local frequent itemsets).
- Sampling: mine a random sample with a lowered min_sup; verify with one scan of the whole database. It saves time but can miss some itemsets.
- Dynamic itemset counting (DIC): add new candidate itemsets at any start point during a scan, once all their subsets are known to be frequent, to reduce the number of scans.
- Vertical data format (Eclat): store the TID-list of each item and intersect TID-lists to get supports, so no repeated scans of the horizontal database are needed.
- Pattern-growth (FP-growth): avoid candidate generation by using an FP-tree.
- Also: higher min_sup, better data structures (hash trees for candidate counting), and parallel/distributed implementation.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Association analysis and Apriori pruning · Data Mining, chapter 4 · asked 2×
- Apriori on 8 transactions, 25% support · Data Mining, chapter 4
- Apriori on four transactions, support 2 · Data Mining, chapter 4
- Short note: Apriori and its drawbacks · Data Mining, chapter 4
- Apriori advantages and disadvantages · Data Mining, chapter 4
- FP-Growth and Apriori disadvantage · Data Mining, chapter 4
- Fast decoupled method approximations and algorithm · Power System Analysis II, chapter 2
- Efficiency of quick sort · Data Structure and Algorithm, chapter 7 · asked 2×
- Efficiency of straight selection sort · Data Structure and Algorithm, chapter 7
- Measures of efficiency with standard curves · Data Structure and Algorithm, chapter 9