Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M6631

Frequent Pattern Growth

Frequent Pattern Growth
TechnicalmediumAlgorithms
Included
account_tree

Updated 2026-08-09

Loading revision record…

Summary

A frequent pattern mining algorithm by Jiawei Han and colleagues that compresses transactions into an FP-tree and mines patterns without generating candidate sets.

Definition

Frequent Pattern Growth (FP-Growth) is a frequent itemset mining algorithm introduced by Jiawei Han, Jian Pei, and Yiwen Yin in 2000. It builds an FP-tree, a prefix tree that compresses the transaction database by sharing common prefixes, together with a header table that orders frequent items by descending frequency and links their occurrences. Mining then proceeds by extracting conditional pattern bases and recursing on each frequent item, so no candidate itemsets are generated. The algorithm requires two scans of the database, one to count frequencies and one to build the tree, and its main constraint is memory, since the tree must fit in main memory.

How to use

- Use tree compression: store transactions as shared prefixes rather than as a flat list of records. - Use frequency ordering: sort items by descending count so the tree stays shallow. - Use recursive decomposition: mine each frequent item by following its conditional pattern base.

Mechanism

Apriori spends most of its cost generating and testing candidate itemsets, and each test requires scanning the database again. FP-Growth removes that cost by building a structure in which every path encodes a set of co-occurring items, so support counts can be read from the tree rather than recomputed. Sharing prefixes collapses repeated transactions into single paths, and ordering items by frequency maximizes that sharing. Mining then decomposes the problem into independent subproblems, one per frequent item, which are solved recursively without any candidate generation.

Practice

In progress 0/1

Practice this model in one real situation:

Check to track your progress (stored locally)
Learning progress0%

Cases

  • Supermarket basket analysis uses FP-Growth to find high-frequency product combinations quickly, without enumerating candidate sets.

Common pitfalls

  • Failing to prune infrequent items first, which lets the tree grow large enough to exhaust memory.
  • Believing the algorithm avoids scanning the database entirely, when it still requires two full passes.
Sources

Source support: Explicit

References currently contain only Wikipedia links; primary sources still need review.

  • link
    en.wikipedia.orghttps://en.wikipedia.org/wiki/Association_rule_learningZH · Explicit
    verified
account_treeGenealogyexpand_more

RELATED MODELS