Sliding HyperLogLog: Estimating Cardinality in a Data Stream over a Sliding Window
Authors:
- Yousra ChabchoubYCYousra Chabchoub
- Georges HebrailGHGeorges Hebrail
- 1 December 2010
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- No. 23759232,p. 1297-1303
Abstract
In this paper, a new algorithm estimating the number of active flows in a data stream is proposed. This algorithm adapts the HyperLogLog algorithm of Flajolet et al. to data stream processing by adding a sliding window mechanism. It has the advantage to estimate at any time the number of flows seen over any duration bounded by the length of the sliding window. The estimate is very accurate with a standard error of about 1.04/√m (the same as in HyperLogLog algorithm), where m is the number of registers in the required memory. As the new algorithm answers more flexible queries, it needs additional memory storage compared to HyperLogLog algorithm. It is proved that the total required memory is at most equal to 5mln(n/m) bytes, where n is the real number of flows in the sliding window. For instance, with a memory of only 35kB, a standard error of about 3% can be achieved for a data stream of several million flows. Theoretical results are validated on both real and synthetic traffic.Keywords
This publication has 4 references indexed in Scilit:
- Order statistics and estimating cardinalities of massive data setsDiscrete Mathematics & Theoretical Computer Science, 2005
- Bitmap algorithms for counting active flows on high speed links2003
- Maintaining Stream Statistics over Sliding WindowsSIAM Journal on Computing, 2002
- Probabilistic counting algorithms for data base applicationsJournal of Computer and System Sciences, 1985