Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

With a b-bit counter, we can ordinarily only count up to 2^b ?1. With R. Morriss probabilistic counting, we can count up to a much

With a b-bit counter, we can ordinarily only count up to 2^b ?1. With R. Morriss probabilistic counting, we can count up to a much larger value at the expense of some loss of precision.

We let a counter value i represent a count of n(i) for i = 0, 1, . . . , 2^b ?1, where the n(i) form an increasing sequence of nonnegative values. We assume that the initial value of the counter is 0, representing a count of n0 = 0. The Increment operation works on a counter containing the value i in a probabilistic manner. If i = 2^b?1, then the operator reports an overflow error. Otherwise, the Increment operator increases the counter by 1 with probabilities 1/(n(i+1) ? n(i)), and it remains unchanged with probability 1 ? 1/(n(i+1) ? n(i)).

If we select n(i) = i for all i ? 0, then the counter is an ordinary one. More interesting situations arise if we select, say, n(i) = 2^(i?1) for i > 0 or n(i) = F(i) (the ith Fibonacci numberSee Section 3.2 in the text).

For this problem, assume that n(2^b?1) is large enough that the probability of an overflow error is negligible.

(a) Prove that the expected value represented by the counter after n Increment operations have been performed is exactly n.

(b) The analysis of the variance of the count represented by the counter depends on the sequence of the n(i). Let us consider a simple case: n(i) = 100i for all i ? 0. Determine the variance in the value represented by the register after n Increment operations have been performed.

image text in transcribed

With a b-bit counter, we can ordinarily only count up to 26-1 With R. Morris's probabilistic counting, we can count up to a much larger value at the expense of some loss of precision. We let a counter value i represent a count of ni for i = 0,1,. . ., 26-1, where the ni form an increasing sequence of nonnegative values. We assume that the initial value of the counter is 0, representing a count of no 0. The INCREMENT operation works on a counter containing the value i in a probabilistic manner. Ii21, then the operator reports an overflow error. Otherwise, the INCREMENT operator increases the counter by 1 with probabilities 1/(ni+1-ni), and it remains unchanged with probability 1- 1/(ni+i-ni) If we select ni for ai 2 0, then the counter is an ordinary one. More interesting situations arise if we select, say, ni-2-1 for i >0 or nF (the ithe Fibonacci number-See Section 3.2 in the text) For this problem, assume that n-1 is large enough that the probability of an overflow error is negli- gible. (a) 120 points) Prove that the expected value represented by the counter after n INCREMENT operations have been performed is exactly n (b) [20 points] The analysis of the variance of the count represented by the counter depends on the in the value represented by the register after n INCREMENT operations have been performed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions