a. Examine the random-number generator on your system. How random is it?
b. Figure 1 shows a routine to flip a coin, assuming that random returns an integer (which is prevalent in many systems). What is the expected performance of the skip list algorithms if the random-number generator uses a modulus of the form M = 2B (which is unfortunately prevalent on many systems)?
Figure 1: Questionable coin flipper
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.