Chapter 4: Problem 61
The simplest way to shuffle cards is to take the top card and insert it at a random place in the deck, called top random insertion, and then repeat. We will consider a deck to be randomly shuffled once enough top random insertions have been made that the card originally at the bottom has reached the top and then been randomly inserted. If the deck has \(n\) cards, then the probability that the insertion will be below the card initially at the bottom (call this card \(B\) ) is \(1 / n\). Thus the expected number of top random insertions before \(B\) is no longer at the bottom is \(n\). Once one card is below \(B\), there are two places below \(B\) and the probability that a randomly inserted card will fall below \(B\) is \(2 / n .\) The expected number of top random insertions before this happens is \(n / 2 .\) The two cards below \(B\) are now in random order. Continuing this way, find a formula for the expected number of top random insertions needed to consider the deck to be randomly shuffled.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.