Figure 10.75 shows a routine to flip a coin, assuming that random returns an integer (which is

Question:

Figure 10.75 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)?
CoinSide flip( ) { if( ( random( ) % 2 ) == 0 ) 3 return HEADS; else return TAILS; }
Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: