Ahmed Helmi;Jérémie Lumbroso;Conrado Martínez;Alfredo Viola
1 Departament Llenguatges i Sistemes Informatics,
2 Algorithmes, Programmes et Résolution
3 Algorithms
4 Instituto de Computacion [Montevideo]
In this paper, we show that data streams can sometimes usefully be studied as random permutations. This simple observation allows a wealth of classical and recent results from combinatorics to be recycled, with minimal effort, as estimators for various statistics over data streams. We illustrate this by introducing RECORDINALITY, an algorithm which estimates the number of distinct elements in a stream by counting the number of $k$-records occurring in it. The algorithm has a score of interesting properties, such as providing a random sample of the set underlying the stream. To the best of our knowledge, a modified version of RECORDINALITY is the first cardinality estimation algorithm which, in the random-order model, uses neither sampling nor hashing.
Volume: DMTCS Proceedings vol. AQ, 23rd Intern. Meeting on Probabilistic, Combinatorial, and Asymptotic Methods for the Analysis of Algorithms (AofA'12)
Ahmed Helmi;Conrado Martínez;Alois Panholzer, 2014, Analysis of the Strategy “Hiring Above the $$m$$ m -th Best Candidate”, Algorithmica, 70, 2, pp. 267-300, 10.1007/s00453-014-9895-3.