kDCI: a Multi-Strategy Algorithm for Mining Frequent Sets

Salvatore Orlando, Claudio Lucchese, Paolo Palmerini, Raffaele Perego, Fabrizio Silvestri

Introduction

Frequent Set Counting (FSC) is a cornerstone of association rule mining, identifying item groups that appear together frequently within a database. However, the search space for these sets is mathematically explosive, making it a significant computational challenge. kDCI (Direct Count & Intersect) is an adaptive, multi-strategy algorithm designed to address this complexity across diverse data types. By dynamically profiling dataset density and employing novel support inference techniques, kDCI avoids redundant computations and maintains scalability where traditional tools often fail.

The Challenge of Frequent Set Counting

The primary difficulty in FSC lies in the variability of data. Algorithms typically excel in either sparse environments (e.g., web logs with few items per transaction) or dense environments (e.g., census data with high attribute overlap). Most existing tools are specialized for one scenario, leading to performance degradation when the data characteristics shift. kDCI addresses this by acting as a "chameleon," profiling data at runtime to select the most efficient processing strategy based on the user-defined support threshold.

Methodology and Optimization

kDCI utilizes several sophisticated engineering techniques to optimize performance:

  1. Hybrid Data Representation: The algorithm begins with a horizontal database format to prune infrequent items efficiently before switching to a vertical format (item-based transaction lists) once the data fits in memory.
  2. Dynamic Data Typing: Using C++ templates, kDCI selects the smallest necessary data type for counters at runtime, maximizing CPU cache efficiency and minimizing memory footprint.
  3. Counting Inference: This is the algorithm's core innovation. Inspired by the PASCAL algorithm, kDCI identifies "key patterns." If an itemset is a "non-key pattern," its support is mathematically identical to one of its subsets.
Equivalence classes and key patterns used for support inference.

By identifying these equivalence classes, kDCI can infer frequencies without performing expensive database scans or intersections for a large portion of the candidate space, significantly reducing the computational load in dense datasets.

Experimental Evaluation

The authors benchmarked kDCI against a variety of synthetic and real-world datasets, including dense sets like chess and connect, and sparse web logs like BMS_View_1. It was also tested on large-scale data such as the 1.3GB TREC WT10g corpus and USCensus1990 to evaluate scalability.

Key Results

kDCI demonstrated superior speed and robustness across the board. In dense datasets, it significantly outperformed established algorithms like FP-Growth and Eclatd.

Performance comparison on the dense 'chess' dataset showing kDCI's execution time vs. support.

While memory-intensive algorithms like FP-Growth often failed on massive datasets like TREC due to memory exhaustion, kDCI's adaptive memory management and pruning strategies allowed it to complete the mining process successfully. The counting inference technique proved particularly effective in reducing the number of bitvector intersections required to determine itemset frequency.

Conclusion

kDCI represents a significant advancement in frequent set mining by combining high-level algorithmic logic with low-level hardware optimizations. While it may be slightly slower in specific synthetic cases where candidate generation is disproportionately high, its overall adaptability makes it a robust choice for real-world "big data" applications. Future work involves further refining search mechanisms within compressed structures and exploring out-of-core mining for datasets exceeding RAM limits.

Summary updated

BibTeX
@inproceedings{orlando2003kdci,
  author = {Salvatore Orlando and Claudio Lucchese and Paolo Palmerini and Raffaele Perego and Fabrizio Silvestri},
  title = {{kDCI: a Multi-Strategy Algorithm for Mining Frequent Sets}},
  booktitle = {FIMI},
  year = {2003},
}
Figure