0
56kviews
Explain DGIM algorithm for counting ones in a window
1 Answer
written 8.0 years ago by |
Suppose we have a window of length N on a binary stream. We want at all times to be able to answer queries of the form “how many 1’s are there in the last k bits?” for any k≤ N. For this purpose we use the DGIM algorithm.
The basic …