Skip to content
StackDecode
AI & ML Atlas
Machine LearningalgorithmAnimated walkthrough

Eclat Algorithm

Finds frequent itemsets by intersecting the lists of transactions that contain each item.

The idea

Eclat stores, for each item, the set of transaction IDs (its tidset). The support of {A, B} is just the size of tidset(A) ∩ tidset(B). Using depth-first search over these vertical lists avoids repeated database scans.

support(AB) = |tid(A) ∩ tid(B)|

Watch it run

The pipeline lights up one step at a time. Use the controls to pause or step through it.

  1. 1Build a tidset for every item.
  2. 2Keep items whose tidset is large enough.
  3. 3Intersect tidsets of pairs to get the support of 2-itemsets.
  4. 4Recurse depth-first on the frequent ones, intersecting again.

support(AB) = |tid(A) ∩ tid(B)|

1/4

Step by step

  1. 1Build a tidset for every item.
  2. 2Keep items whose tidset is large enough.
  3. 3Intersect tidsets of pairs to get the support of 2-itemsets.
  4. 4Recurse depth-first on the frequent ones, intersecting again.

Where it is used

Frequent pattern mining with fast set intersections.

Watch out for

Tidsets can be large for dense data.

Related