Skip to main content

Questions tagged [streaming-algorithm]

Streaming reads the data once, in sequence.

Filter by
Sorted by
Tagged with
0 votes
0 answers
22 views

I was working on some conceptual parts about the Turing Machine and streaming algorithm, and got a bit stuck. Below is the statement I am trying to prove. “If L has a streaming algorithm, then L is ...
FORZA INTER's user avatar
1 vote
0 answers
268 views

I am reading some heavy hitter (HH) papers when I run into the following reduction theorem. The theorem attempts to reduce an HH problem with a very small tail frequency $\epsilon$ to multiple HH ...
Symbol 1's user avatar
-1 votes
1 answer
61 views

We receive a stream of $n$ integer numbers: $x_1, x_2,\dots, x_n$. Assume that each $x_i$ is a constant and can be stored with $O(1)$ bits. Whenever a new number $x_i, i \geq 2$ is inputted, we need ...
reservoir's user avatar
3 votes
2 answers
220 views

Consider a sequence of vertex and edge additions and removals to an initially empty (undirected, simple) graph. Is it possible to update the ordered list of vertex degrees in constant time (and space),...
Matthieu Latapy's user avatar
0 votes
1 answer
153 views

I have two multisets $A$, $B$ where $A \subseteq B$. Using these two sets, we construct two Bloom filters $BF(A), BF(B)$; both using bitsets of size $n$ with the same $k$ hash functions. What's the ...
zetaprime's user avatar
  • 123
6 votes
1 answer
1k views

A graph $\mathcal{G}=(\mathcal{V},\mathcal{E})$ may be represented in central memory as follows: an associative array (hash table) $V$ gives for any $v\in \mathcal{V}$ the list of its neighbors $V[v]$...
Matthieu Latapy's user avatar
1 vote
1 answer
68 views

Say I have two noisy / lossy streams of symbols of the same data. Essentially, I want to match up the two streams as best as possible. For example, say I have: ...
Mala's user avatar
  • 141
2 votes
1 answer
90 views

I am trying to understand this paper, in which (k, b)-clusterability is defined like so: A set $X$ of points in a metric space is (k, b)-diameter clusterable if $X$ can be partitioned into $k$ ...
Gulzar's user avatar
  • 193
1 vote
2 answers
254 views

Consider the sampling algorithm as described here section 2.2 specifically Algorithm 2.4. Essentially we are given a stream of $N$ elements and wish to maintain a uniformly random sample, $S$, of size ...
sn3jd3r's user avatar
  • 190
0 votes
1 answer
126 views

In a single pass stream you can compute the minimum spanning tree (MST) in an undirected graph using the following algorithm: ...
Simd's user avatar
  • 1,036
1 vote
1 answer
133 views

Suppose there is an n-element stream with elements from $\{0,1\}^\ell$ which means each element is in set $\{0, \dots , 2^\ell-1\}$. Also may assume $2^\ell >n^2$. How can I with $2p$ passes over ...
mike's user avatar
  • 57
2 votes
1 answer
126 views

I have been studying a streaming algorithm to determine if there is a majority element in a stream. But am confused by a proof for it. The algorithm works as follows. You keep one counter $c$ and a ...
Simd's user avatar
  • 1,036
2 votes
1 answer
280 views

As described in the reference, the algorithm (see at the bottom) supposes to output an estimator $\hat T$ for the # of triangles in a given graph $G = (V, E)$, denoted $T$. It is written that "it ...
keyboardAnt's user avatar
2 votes
1 answer
99 views

Linear Time Logic (LTL) is used for system verification. In my case, I am investing some time, to see the feasibility of using LTL this time to enforce a constraint on a stream of data. Enough of ...
Abderrahim ben's user avatar
4 votes
5 answers
1k views

I have a stream of tuples arriving in the following form: (timestamp,price). There is no pattern in the arrival of these data points (number of data points per minute is random). I need to be able to ...
Aman's user avatar
  • 41
2 votes
1 answer
4k views

If I have an incoming stream of integers how can I best maintain a sorted list of them? The only way I can think of is to binary search for the position and shifting the remaining elements to the ...
Andrew Scott's user avatar
1 vote
1 answer
2k views

I was wondering if there exists an efficient algorithm for calculating the "rolling mode of an array of integers. By rolling mode I mean that we have an array of integers of size $n$ and a sliding ...
Teodor Dyakov's user avatar
3 votes
2 answers
3k views

Consider following task: we have an input of N+1 lines, where first line contains N ≤ 150000 - number of items, and then we have N lines, each one contains one item, which is a tuple (number id, ...
Alex Zhukovskiy's user avatar
2 votes
0 answers
952 views

I've been reading about count-min sketch and I'm interested in the performance of this data structure when doing conservative updates. To my understanding from the Wikipedia article, conservative ...
roctothorpe's user avatar
  • 1,168
1 vote
1 answer
827 views

I saw this post and wondered why the approach described in the accepted answer works. The same problem and solution is described a bit nicer here. So let's say we receive a stream of $n-2$ pairwise ...
PlsWork's user avatar
  • 427
3 votes
1 answer
254 views

I am reading an article related to streaming algorithms named "Turnstile streaming algorithms might as well be linear sketched" by Yi Li, Huy Nguyen and David Woodruff, At some point they have a ...
Matan L's user avatar
  • 143
2 votes
0 answers
70 views

I teach a randomized algorithms course, and many of the cool applications are to streaming computation. I can have students implement these algorithms in Python or C++, but I feel it would be much ...
David White's user avatar
0 votes
1 answer
4k views

I want to find the pth percentile of a stream of integers, exactly (not approximately). If we know the number of integers which will be coming in the stream and the numbers can fit into the memory ...
user avatar
2 votes
1 answer
238 views

I apologize if this is the wrong place or too trivial a question for this community. What is the best data structure to store a time-windowed streaming graph in order to compute fast statistics over ...
rshroff08's user avatar
-1 votes
1 answer
269 views

Find the 10 top most occurring strings in a huge array of Strings. Since the array is huge, it is not possible to load it in memory completely. My idea is to parse the arrays one by one and put the ...
learner's user avatar
  • 101