11
votes
Accepted
How to show that the median cannot be maintained in $O(1)$ time?
If you can maintain the median of $n$ objects in $O(1)$, then you can sort a sequence $x_1, \dots, x_n$ in $O(n)$:
first you compute a value $a$ smaller than all elements in the sequence and a value $...
3
votes
Boosting the probability of success(random projections, johnson lindenstrauss)
If the probability of success of an event is $1/n$, then the failure probability is $(1 - 1/n)$. Hence the probability of failure for $n$ independent trials is $(1 - 1/n)^n$. The limit as $n$ goes to ...
3
votes
Sublinear finite-precision sampling in a stream
The strategy will be to use Vitter's algorithm, but replace the arbitrary-precision random number with online generation of the bits of that random number.
Building block: sampling without arbitrary ...
3
votes
How much memory is needed for counting distinct elements in a stream exactly with high probability
You can do $O(\log \frac n\epsilon)$ space if you only want an approximation.
The main idea is that you use the random hash function $h$ to do the same protocol as in the Goldwasser-Sipser Set ...
1
vote
Finding top-K items in a sliding window
Your problem may be solved (perhaps with small modifications) by the algorithms TiTiCount, TiTiCount+ and TiTiCount+h. These are algorithms that allows you estimating the frequencies and finding ...
1
vote
Accepted
Single-pass streaming quantile estimation using moments
Gan et al. address this in Moment-Based Quantile Sketches for Efficient High Cardinality Aggregation Queries. The answers are rather nuanced.
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
data-streams × 36ds.algorithms × 18
streaming-algorithms × 12
lower-bounds × 7
streaming × 7
reference-request × 5
ds.data-structures × 4
randomized-algorithms × 4
approximation-algorithms × 3
communication-complexity × 3
online-algorithms × 3
graph-algorithms × 2
big-list × 2
space-bounded × 2
monad × 2
cc.complexity-theory × 1
graph-theory × 1
machine-learning × 1
cg.comp-geom × 1
it.information-theory × 1
sorting × 1
st.statistics × 1
clustering × 1
upper-bounds × 1
survey × 1