A Parallel Space Saving Algorithm For Frequent Items and the Hurwitz zeta distribution

Massimo Cafaro, Marco Pulimeno, Piergiulio Tempesta
2014
4 references

Abstract

We present a message-passing based parallel version of the Space Saving algorithm designed to solve the $k$--majority problem. The algorithm determines in parallel frequent items, i.e., those whose frequency is greater than a given threshold, and is therefore useful for iceberg queries and many other different contexts. We apply our algorithm to the detection of frequent items in both real and synthetic datasets whose probability distribution functions are a Hurwitz and a Zipf distribution respectively. Also, we compare its parallel performances and accuracy against a parallel algorithm recently proposed for merging summaries derived by the Space Saving or Frequent algorithms.

2 repositories
4 references

Code References

â–¶ ClickHouse/ClickHouse
2 files
â–¶ docs/en/sql-reference/aggregate-functions/reference/topk.md
1
Implements the [Filtered Space-Saving](https://doi.org/10.1016/j.ins.2010.08.024) algorithm for analyzing TopK, based on the reduce-and-combine algorithm from [Parallel Space Saving](https://doi.org/10.1016/j.ins.2015.09.003).
â–¶ src/Common/SpaceSaving.h
2
* https://arxiv.org/pdf/1401.0702.pdf
* https://arxiv.org/pdf/1401.0702.pdf
â–¶ duckdb/duckdb
1 file
â–¶ extension/core_functions/aggregate/holistic/approx_top_k.cpp
1
// distribution" arxiv link - https://arxiv.org/pdf/1401.0702
Link copied to clipboard!