Skip to main content
QUICK REVIEW

[Paper Review] Shuffling cards for blackjack, bridge, and other card games

Mark Conger, Divakar Viswanath|ArXiv.org|Jun 1, 2006
Artificial Intelligence in GamesComputer Science25 references5 citations
TL;DR

This paper investigates the number of riffle shuffles required to mix decks for games like blackjack and bridge, where card distinctiveness and permutation uniformity are less critical than in games with fully distinct cards. It proves that computing the descent polynomial—key to transition probabilities between decks—is #P-complete, and while coefficients approximate a bell curve, the approximation is insufficient for tail probabilities critical to mixing times, leading to heuristic and experimental estimates for mixing thresholds.

ABSTRACT

This paper is about the following question: How many riffle shuffles mix a deck of card for games such as blackjack and bridge? An object that comes up in answering this question is the descent polynomial associated with pairs of decks, where the decks are allowed to have repeated cards. We prove that the problem of computing the descent polynomial given a pair of decks is $#P$-complete. We also prove that the coefficients of these polynomials can be approximated using the bell curve. However, as must be expected in view of the $#P$-completeness result, approximations using the bell curve are not good enough to answer our question. Some of our answers to the main question are supported by theorems, and others are based on experiments supported by heuristic arguments. In the introduction, we carefully discuss the validity of our answers.

Motivation & Objective

  • To determine the number of riffle shuffles needed to mix a deck for games like blackjack and bridge, where not all 52! permutations need to be equally likely.
  • To analyze the computational complexity of computing transition probabilities between decks with repeated cards under riffle shuffling.
  • To assess the accuracy of normal approximation (bell curve) for coefficients of descent polynomials in the context of mixing times.
  • To provide estimates for mixing times in specific games using a combination of theoretical results and heuristic numerical methods.

Proposed method

  • The descent polynomial is used to encode transition probabilities between two decks under riffle shuffling, with coefficients representing the number of riffle shuffle sequences leading to a given permutation.
  • The paper proves that computing the descent polynomial for two decks is #P-complete, indicating no known polynomial-time algorithm exists.
  • A normal approximation (bell curve) is derived for the coefficients of the descent polynomial under general conditions, showing asymptotic normality.
  • For coefficients in the tails—critical for mixing time estimation—normal approximation is shown to be insufficiently accurate, necessitating alternative methods.
  • Numerical extrapolation using polynomial fitting (degree 4–6) is applied to estimate tail coefficients from computed terms, with error bounds assessed via Monte Carlo simulation.
  • Experiments use large-scale simulations (l = 10^10) to validate the accuracy of coefficient approximations and support heuristic estimates of total variation distance.

Experimental results

Research questions

  • RQ1What is the number of riffle shuffles required to mix a deck for games like blackjack, where suits and card order are less significant?
  • RQ2How does the computational complexity of computing transition probabilities between decks with repeated cards compare to the standard case with distinct cards?
  • RQ3Can the coefficients of the descent polynomial be accurately approximated using the normal distribution, especially in the tails relevant to mixing times?
  • RQ4How do mixing times depend on the shuffling model, particularly when shuffling is not memoryless (e.g., p > 1/2 or p < 1/2 in Markovian riffle models)?
  • RQ5What combinatorial structures govern the number of riffle shuffles leading to specific permutations in structured decks, such as (1,2)^n or decks with modular constraints?

Key findings

  • The problem of computing the descent polynomial for two decks is proven to be #P-complete, indicating inherent computational intractability for exact computation.
  • While the coefficients of the descent polynomial are asymptotically normally distributed, the approximation is not accurate enough in the tails to determine mixing times precisely.
  • For bridge with three riffle shuffles, the coefficient of x^7 in the descent polynomial was estimated using degree-6 polynomial fitting on terms from x^15 to x^26, with estimated relative error below 10%.
  • For blackjack with three shuffles, coefficients of x^12, x^13, and x^14 were extrapolated from terms x^15 to x^22 using degree-4 polynomial fits, with confidence in relative error under 10%.
  • The total variation distance for the bridge case was estimated with less confidence due to the reliance on extrapolation in the tail region.
  • The paper identifies three open problems: generalizing riffle shuffles with memory (p-dependent models), counting R-related equivalence classes in (1,2)^n sequences, and deriving a recurrence for permutations with modular constraints and fixed descent counts.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.