Skip to content

ZechenM/Space-Saving

Repository files navigation

Space-Saving

Space Saving Algorithm C++ Implementation Using Min-heap

Incentive

SampleData.txt

  • Input sequence: a, b, a, c, d, e, a, d, f, a, d
  • Expected SpaceSaving Summary: a(4), d(3), e(2), f(2)

zipfData.txt

  • 1e5 data in zipf distribution
  • Running time is approximately 800 nanoseconds

Reference

  • A. Metwally, D. Agrawal, and A. El Abbadi. Efficient Computation of Frequent and Top-k Elements in Data Streams. In Proceedings of the 10th ICDT International Conference on Database Theory, pages 398–412, 2005.

About

Space Saving Algorithm Implementation Using C++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published