- Introduced by
- Mohammed J. Zaki
- Year
- 2000
- Type
- Frequent-itemset mining algorithm (vertical format)
- Family
- Pattern mining
What does it do?
ECLAT is a frequent-itemset mining algorithm systematically presented in Mohammed Zaki's 2000 IEEE TKDE paper on scalable association mining.
Instead of scanning transactions row by row, it stores for each item the set of transaction IDs (a tidset) that contain it, and computes the support of an itemset by intersecting tidsets. This intersection-based design contrasts with Apriori's horizontal scans and FP-Growth's tree structure.
The intuition behind the method
Most itemset miners think row by row: which items are in each transaction? ECLAT flips the table on its side. For every item it keeps a list of the transactions that contain it. The support of a pair of items is then the size of the overlap of their two lists, a set intersection, and the database does not need to be rescanned. To find longer frequent itemsets, intersect the lists of shorter ones. Walking this depth-first and pruning any branch whose intersection falls below the threshold enumerates all frequent itemsets.
History
Mohammed Zaki's 2000 IEEE TKDE paper on scalable association mining presents the decomposition of the itemset lattice into independent sublattices and the lattice traversal techniques on which ECLAT is based. Per the 2015 book passage, ECLAT is a memory optimization of the breadth-first partitioning approach of Savasere et al., replacing data partitioning with lattice partitioning based on common prefixes. The diffset refinement (dECLAT) is a later variant of the same vertical approach. ECLAT is one of three widely discussed families of frequent-itemset algorithms, alongside Apriori (1994, horizontal candidate generation) and FP-Growth (2000, tree-based), each trading off database scans, memory, and data density differently.
When to use it
Choose ECLAT for frequent-itemset mining when the data fits a vertical, intersection-based representation and the tidsets of the frequent items can be held in memory. It is a reasonable alternative to Apriori when repeated database scans are the bottleneck, and a peer to FP-Growth when the choice depends on data layout. Diffsets are the variant to consider when the data is dense, since the tidsets then become long and the difference representation is smaller. Avoid plain ECLAT on large, sparse datasets where tidsets for frequent items would be very large; FP-Growth or diffset-based mining is then the safer option. The method assumes binary item presence per transaction. The output is the set of all itemsets whose support meets the threshold, each with its support count. Frequent itemsets are only the first stage: association rules with confidence or lift are generated afterward, and the choice of minimum support strongly affects the output.
Limitations and considerations
- Tidsets for frequent items can be large, which makes memory the main constraint on big datasets.
- Intermediate intersection results along the search path add memory and time overhead.
- The vertical layout is less intuitive than a horizontal transaction list, which makes it harder to inspect the data directly.
- The number of itemsets grows quickly as the minimum-support threshold falls, so results depend strongly on that threshold.
- Assumes binary presence data: each transaction records only whether an item occurs, not its quantity.
- Assumes that the tidsets of frequent items fit in memory; the algorithm enumerates all itemsets above the minimum support exactly, so memory, not approximation, is the trade-off.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Support is computed by tidset intersection, so the original transactions do not need to be rescanned once the vertical layout is built.
- The depth-first search over prefix equivalence classes reuses intermediate intersections and keeps memory use local to each class.
- In the experiments reported in the 2000 paper, the proposed algorithms improved on earlier approaches by more than an order of magnitude on the authors' test databases, so the speed advantage is documented only for those datasets.
- The diffset variant reduces memory use and intersection cost on datasets where tidsets are long.
Applications
- Market-basket and retail association mining, where each item's transaction list is naturally available.
- Clickstream or web-usage co-occurrence analysis over sessions.
- Mining dense transactional datasets, where the diffset variant is the relevant form of ECLAT.
How it works
How it works
The database is transformed into vertical format: each item maps to its tidset, the set of transaction IDs in which it appears. This structure is the basis of the method, because later work consists of set operations on tidsets rather than passes over the original transactions.
Formula
\text{for each item } i:\ t(i) = \{ \text{transaction ids containing } i \}The support of an itemset is the cardinality of the intersection of its items' tidsets, that is, the number of transactions containing all of them. Frequent single items, whose tidsets meet the threshold, seed the search.
Formula
\text{support}(X) = | \textstyle\bigcap_{i\in X} t(i) |Itemsets are extended by intersecting tidsets: the tidset of X ∪ {y} is the intersection of the tidsets of X and {y}. ECLAT partitions the itemset lattice into prefix equivalence classes (itemsets sharing a prefix) and mines each class in main memory. The literature does not characterise the traversal consistently: some sources describe it as breadth-first over each sublattice, while the recursive pseudo-code of the standard treatment extends each prefix branch and processes the resulting class before returning, which is a depth-first pattern. Intermediate intersections are reused within each class, and the search stays local to it.
Formula
t(X\cup Y) = t(X) \cap t(Y)\ \text{(intersect to extend itemsets)}An extension is kept only if its tidset, and hence its support, meets the minimum-support threshold; otherwise that branch is pruned, because no superset of an infrequent itemset can be frequent. Diffsets, which store the difference between an itemset's tidset and its parent's rather than the full tidset, are a common optimization that reduces memory and intersection cost.
Formula
\text{keep extensions with } \text{support} \ge \text{minsup}Common pitfalls
- Mining very large sparse data without diffsets, where tidsets can grow beyond what memory allows; consider diffsets or FP-Growth.
- Setting the minimum support too low, which enlarges the explored lattice and produces an unmanageable number of itemsets.
- Treating frequent itemsets as association rules; rules require a separate step with their own thresholds.
- Using the standard tidset representation on dense data where the diffset variant would reduce memory use considerably.
Frequently asked questions
How does ECLAT differ from Apriori and FP-Growth?
All three find frequent itemsets. Apriori uses a horizontal format with candidate generation and repeated database scans. FP-Growth compresses the transactions into a prefix tree and mines that tree recursively. ECLAT builds a vertical tidset format and computes support by intersecting transaction-ID lists depth-first. ECLAT and FP-Growth differ mainly in data structure: tidset intersections in one case, a compressed tree in the other.
What is a tidset?
A tidset (transaction-ID set) is the list of transactions that contain a given item or itemset. ECLAT stores these vertically and computes an itemset's support as the size of the intersection of its items' tidsets, turning counting into set intersection.
What are diffsets?
Diffsets store only the difference between an itemset's tidset and its parent's, rather than the full tidset. On dense data this can substantially reduce memory and intersection cost, which is the motivation for the dECLAT variant.
Related methods
Sources
Zaki, M. J. (2000). Scalable algorithms for association mining. IEEE Transactions on Knowledge and Data Engineering, 12(3), 372–390.
Open DOI reference