NivaarExam PrepOfficial exam papers ↗

16-Civ-B10 Traffic Engineering · December 2019

Question 4 of 7: M/M/1 queue at a single cashier

Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)

Notes on this paper

Paper format. National Examinations, December 2019, 16-Civ-B10 Traffic Engineering. Three-hour duration, OPEN BOOK (any non-communicating calculator permitted). Seven questions on four pages, all of equal value at 20 marks each; the paper requires five solutions and marks only the first five as they appear in the answer book. Because the set is a study resource, all seven questions are solved here. The paper’s own Note 1 invites a clear statement of any assumptions made and Note 2 permits any required-but-not-given data to be assumed; every assumption used below is stated explicitly where it is introduced. Page 2 reproduces the AASHTO 2001 metric stopping-sight-distance table, whose footnote fixes the brake-reaction time at 2.5 s and the deceleration at 3.4 m/s2; Question 1 is built around it.

Reference texts.

Canadian context. These are Engineers Canada national examinations, so the answers are framed for Canadian practice: the TAC Geometric Design Guide for Canadian Roads and the MUTCDC are the governing documents and metric design controls are used throughout. Question 1 supplies the AASHTO 2001 metric table directly, so that table is used as printed — the TAC guide adopts the same 2.5 s / 3.4 m/s2 stopping model, so the two agree here. Lane widths, walking speed and crosswalk geometry follow TAC and MUTCDC practice.

Question 4: M/M/1 queue at a single cashier (5 × 4 = 20 marks)

Question text not reproduced: the examination questions are © Engineers and Geoscientists BC. Open the official past paper (linked at the top of this page) to read the question, then follow the worked solution below.

Given. A single service channel with Poisson arrivals and exponential service times, served first-in first-out with an unlimited waiting area — the standard M/M/1 system.

QuantitySymbolValue
Arrival rateλ1 per 2 min = 0.5 customer/min
Service rateμ6 per 10 min = 0.6 customer/min
Number of channelsN1
Traffic intensityρ = λ/μ0.8333

Find. The idle probability, the mean queue and system contents, the mean waiting and service times, and the probability that the queue trigger for a second cashier is reached.

M/M/1: Poisson arrivals, exponential service, one cashier, FIFO arrivals lambda = 0.5/min waiting line, L_q = 4.167 cashier busy 83.33 per cent of the time; served at mu = 0.6/min in system L = 5.000 W = 10.000 min, W_q = 8.333 min State probabilities P(n) = (1 − rho)·rho^n 0 0.167 1 0.139 2 0.116 3 0.096 4 0.080 5 0.067 6 7 8 9 10 11 12 n = number of customers in the system n ≥ 6: second cashier opens, probability 0.3349
Question 4: the single-channel queue and its state-probability distribution. The shaded band collects the states from n = 6 upward, whose total probability is the answer to part (e).

Approach. Put both rates in the same units, confirm the system is stable, then read off the standard M/M/1 birth-and-death results in the order the question asks for them, using Little’s law to connect the counts to the times.

  1. Common units and the stability test. One arrival per 2 minutes is \(\lambda = 0.5\) customer/min; six services per 10 minutes is \(\mu = 0.6\) customer/min. The traffic intensity is $$\rho = \frac{\lambda}{\mu} = \frac{0.5}{0.6} = 0.8333$$ Because \(\rho \lt 1\) the single channel can keep up on average and steady-state results exist. Note that 0.8333 is a high utilisation: the queue results below are correspondingly sensitive to the service rate, which is exactly why the store has a trigger for a second cashier.
  2. Part (a) — probability the cashier is free. The cashier is free whenever the system holds no customers, so $$P_{0} = 1 - \rho = 1 - 0.8333 = \boxed{0.1667}$$ i.e. the cashier is idle about 16.7 % of the time and busy 83.3 % of the time.
  3. Part (b) — average number waiting to be processed. This is the mean queue length, excluding the customer currently at the till: $$L_{q} = \frac{\rho^{2}}{1-\rho} = \frac{(0.8333)^{2}}{0.1667} = \boxed{4.167\ \text{customers}}$$
  4. Part (c) — average number of customers in line. Read as the number in the system — the customers waiting plus the one being served — this is $$L = \frac{\rho}{1-\rho} = \frac{0.8333}{0.1667} = \boxed{5.000\ \text{customers}}$$ and the two answers are consistent because \(L = L_q + \rho = 4.167 + 0.833 = 5.000\). Reporting both, and saying which is which, is what parts (b) and (c) are testing: the difference between them is exactly the probability that the server is busy.
  5. Part (d) — waiting time and service time. Little’s law converts each count into the corresponding time by dividing by the arrival rate: $$W_{q} = \frac{L_{q}}{\lambda} = \frac{4.167}{0.5} = \boxed{8.333\ \text{min}}, \qquad \frac{1}{\mu} = \frac{1}{0.6} = \boxed{1.667\ \text{min}}$$ so a customer waits about 8 min 20 s in line and spends 1 min 40 s at the till, giving a total time in the system of \(W = W_q + 1/\mu = 10.000\) min — which the independent route \(W = L/\lambda = 5.000/0.5\) reproduces exactly. Five sixths of a customer’s visit is spent waiting rather than being served, which is the practical message of a system running at \(\rho = 0.83\).
  6. Part (e) — probability the second cashier opens. For M/M/1 the state probabilities are geometric, \(P(n) = (1-\rho)\rho^{n}\), and the tail sums to a single power: $$P(n \ge k) = \sum_{n=k}^{\infty}(1-\rho)\rho^{n} = \rho^{k}$$ "The line of customers is longer than five" is read as more than five customers present, i.e. \(n \ge 6\): $$P(n \ge 6) = \rho^{6} = (0.8333)^{6} = \boxed{0.3349}$$ so the second cashier is opened about a third of the time. Summing the geometric series term by term from \(n = 6\) reproduces 0.3349 exactly, which confirms the closed form.
Check: which count the trigger refers to. "Longer than five customers" is ambiguous between five customers in the system (giving \(P(n \ge 6) = \rho^{6} = 0.3349\)) and five customers waiting in line, which means six in the system and gives \(P(n \ge 7) = \rho^{7} = 0.2791\). The first reading is adopted because the question’s own part (c) uses "in line" for the system count, and it is declared here under the paper’s Note 1. The conclusion — that a second cashier is needed for roughly a third of the peak — is unchanged either way.
Question 4 — final results
QuantitySymbolValue
Traffic intensityρ0.8333
(a) Probability the cashier is freeP00.1667
(b) Average number waitingLq4.167 customers
(c) Average number in the systemL5.000 customers
(d) Average wait in lineWq8.333 min
(d) Average service time1/μ1.667 min
(d) Average total time in the systemW10.000 min
(e) Probability a second cashier opensP(n ≥ 6)0.3349
(e) Alternative reading, five waitingP(n ≥ 7)0.2791