Sign in to save

Bookmark this page so you can find it later.

Sign in to save

Bookmark this page so you can find it later.

Choosing a checkout line feels like a guessing game, but it can be studied with queueing theory, the math of waiting lines. A line moves based on how often customers arrive, how fast cashiers serve them, and how much those times vary. The shortest visible line is not always the fastest because a cart with many items or one slow payment can change everything.

This matters anywhere people wait, from supermarkets to ticket counters to customer support chats.

A separate-line system is often modeled like several M/M/1 queues, where each cashier has one independent line. A shared serpentine line feeding multiple cashiers is modeled more like an M/M/k queue, where k cashiers pull from the same waiting pool. The shared line usually reduces average waiting time because the next available cashier serves the next person, so one slow customer does not trap everyone behind them.

The main idea is pooling risk, which smooths out random delays and makes the system fairer.

Key Facts

  • Traffic intensity for one cashier: rho = lambda / mu, where lambda is arrival rate and mu is service rate.
  • A stable checkout line needs rho < 1, meaning customers are served faster than they arrive on average.
  • For one M/M/1 line, average number in line is Lq = rho^2 / (1 - rho).
  • For one M/M/1 line, average waiting time in line is Wq = Lq / lambda.
  • For k cashiers, total traffic intensity is rho = lambda / (k mu), and stability requires rho < 1.
  • A single shared line usually beats separate lines because it sends each customer to the next open cashier and reduces the effect of unusually slow carts.

Vocabulary

Queueing theory
Queueing theory is the branch of math that studies waiting lines, service times, and how systems handle arrivals.
Arrival rate
Arrival rate is the average number of customers entering a line per unit of time, often written as lambda.
Service rate
Service rate is the average number of customers a cashier can finish per unit of time, often written as mu.
Traffic intensity
Traffic intensity is the fraction of service capacity being used, and high values mean the line can grow quickly.
Pooling
Pooling is combining demand into one shared line so that random slowdowns are spread across all servers instead of hurting only one line.

Common Mistakes to Avoid

  • Choosing only the visibly shortest line is misleading because the number of people does not reveal item counts, payment delays, price checks, or cashier speed.
  • Ignoring variability is wrong because two lines with the same average speed can feel very different when one has more unpredictable service times.
  • Assuming separate lines are always fair is wrong because one slow customer can trap everyone behind them while other lines move ahead.
  • Using rho = lambda / mu for multiple cashiers without adjusting for k is wrong because total service capacity is k mu, so the correct multi-server load is rho = lambda / (k mu).

Practice Questions

  1. 1 A cashier serves 24 customers per hour on average, and customers arrive at 18 per hour. For a single M/M/1 line, compute rho and decide whether the line is stable.
  2. 2 A store has 4 cashiers, each serving 20 customers per hour. Customers arrive at 60 per hour. Compute rho = lambda / (k mu). Is the system lightly loaded, moderately loaded, or near capacity?
  3. 3 Two checkout designs have the same number of cashiers and the same average service speed: one has separate lines and one has a single shared serpentine line. Explain why the shared line usually has a shorter average wait and feels fairer.