東京大学 情報理工学系研究科 創造情報学専攻 2026年2月実施 筆記試験 第2問
Author
itsuitsuki
Description
Memorized version (English)
Consider a server that can only handle one request at a time.
- Requests arrive continuously at an arrival rate of λ.
- The service rate for processing a request is μ.
- We define the probabilities for a very small time interval Δt as follows:
- The probability of a new arrival is λΔt.
- The probability of completing the current task (service completion) is μΔt.
- The probability of more than one event occurring (e.g., two arrivals, or one arrival and one departure) in this interval is negligible (o(Δt)).
Let Pn(t) be the probability that there are n requests in the system (waiting + being served) at time t.
The boundary condition for an empty system is given by:
P0(t+Δt)=P0(t)(1−λΔt)+P1(t)μΔt
Answer the following questions.
(1) For n≥1, derive the expression for Pn(t+Δt) in terms of Pn−1(t), Pn(t), and Pn+1(t).
(2) Assuming the system reaches a Steady State (where Pn(t) does not change with time as t→∞), find the recurrence relation for Pn.
(3) Let the utilization rate be ρ=λ/μ. Using the normalization condition ∑n=0∞Pn=1, find the explicit expression for Pn.
(4) Find the expected number of requests in the system, denoted as L. You can use the fact that ∑n=0∞nxn=(1−x)2x for 0<x<1.
(5) Using Little's Law (L=λW, where W is the average time a request spends in the system), find the expression for W.
(6) Analyze what happens to W as ρ approaches 1.
Suppose the total cost is given by Cost=Cs+L×Cd, where Cs is the fixed cost of the server and Cd is the delay cost per request per unit of time.
(7) Given: μ=10, λ=8, Cs=10, Cd=5. Calculate the total cost.
(8) An enhancement is proposed: μ can be increased to 12, but the fixed cost Cs will increase to 15. Calculate the new total cost and determine if this change is economically rational.
题目描述
本页原文标为“英文回忆版”。考虑一次只能处理一个请求的服务器:请求以到达率 λ 连续到来,服务率为 μ。在很小时间 Δt 内,新到达概率为 λΔt,当前服务完成概率为 μΔt,两个以上事件(如两次到达,或到达与离开同时发生)的概率可忽略,记为 o(Δt)。令 Pn(t) 为时刻 t 系统中(等待加服务中)共有 n 个请求的概率。空系统边界式为
P0(t+Δt)=P0(t)(1−λΔt)+P1(t)μΔt.
-
对 n≥1,用 Pn−1(t),Pn(t),Pn+1(t) 写出 Pn(t+Δt)。
-
假设 t→∞ 达到稳态,即 Pn(t) 不再随时间变化,求 Pn 的递推关系。
-
定义利用率 ρ=λ/μ。利用归一化 ∑n=0∞Pn=1,求 Pn 的显式表达式。
-
求系统内请求数期望 L。可使用
n=0∑∞nxn=(1−x)2x,0<x<1.
-
用 Little 定律 L=λW 求请求在系统中平均逗留时间 W。
-
分析 ρ→1 时 W 的变化。
总成本定义为
Cost=Cs+LCd,
其中 Cs 是服务器固定成本,Cd 是每个请求、每单位时间的延迟成本。
- 给定 μ=10,λ=8,Cs=10,Cd=5,计算总成本。
- 若把 μ 提升到 12,但固定成本 Cs 增至 15,计算新总成本并判断该升级在经济上是否合理。
Kai (by Gemini 3 Pro)
1. Derivation of Pn(t+Δt)
To have n requests at time t+Δt (where n≥1), one of three mutually exclusive events must have occurred during the interval Δt:
- No change: There were n requests at time t, and no new arrivals or departures occurred.
Probability: Pn(t)⋅(1−λΔt−μΔt)
- One Arrival: There were n−1 requests at time t, and one new request arrived.
Probability: Pn−1(t)⋅(λΔt)
- One Departure: There were n+1 requests at time t, and one request was served.
Probability: Pn+1(t)⋅(μΔt)
Combining these gives:
Pn(t+Δt)=Pn(t)(1−λΔt−μΔt)+Pn−1(t)λΔt+Pn+1(t)μΔt
2. Recurrence Relation
Rearrange the equation from Q1 and divide by Δt:
ΔtPn(t+Δt)−Pn(t)=−(λ+μ)Pn(t)+λPn−1(t)+μPn+1(t)
Take the limit as Δt→0. The left side becomes the derivative dtdPn(t).
In the Steady State, probabilities are constant, so dtdPn(t)=0. Let Pn(t)=Pn.
0=−(λ+μ)Pn+λPn−1+μPn+1
(λ+μ)Pn=λPn−1+μPn+1
This represents the global balance equations. It implies that the rate of entering state n equals the rate of leaving state n. It simplifies to the local balance equation (Rate Up = Rate Down):
λPn=μPn+1
Pn+1=μλPn=ρPn
3. Explicit Expression for Pn
From the recurrence relation Pn+1=ρPn, we can see this is a geometric sequence:
Pn=ρnP0
Using the normalization condition that the sum of all probabilities is 1:
n=0∑∞Pn=n=0∑∞ρnP0=P0n=0∑∞ρn=1
Using the geometric series sum formula (assuming ρ<1 for stability):
P0⋅1−ρ1=1⟹P0=1−ρ
Substituting back:
Pn=(1−ρ)ρn
4. Average Number of Requests (L)
L=E[n]=n=0∑∞nPn=n=0∑∞n(1−ρ)ρn
L=(1−ρ)n=0∑∞nρn
Using the given hint ∑n=0∞nxn=(1−x)2x with x=ρ:
L=(1−ρ)⋅(1−ρ)2ρ
L=1−ρρ
5. Average Waiting Time (W)
Using Little's Law: L=λW.
W=λL=λ1⋅1−ρρ
Since ρ=λ/μ:
W=λ1⋅1−λ/μλ/μ=λ1⋅μ−λλ
W=μ−λ1
6. Behavior when ρ→1
As ρ→1 (which means λ→μ):
W=μ(1−ρ)1
The denominator approaches 0. Therefore, W→∞.
This implies that as the arrival rate approaches the service capacity, the average time a request spends in the system grows asymptotically to infinity (the system becomes unstable).
7. Cost Calculation (Current State)
Parameters:
- μ=10
- λ=8
- Cs=10
- Cd=5
Calculate ρ and L:
ρ=108=0.8
L=1−0.80.8=0.20.8=4
Calculate Total Cost:
Costcurrent=Cs+L×Cd=10+4×5=10+20=30
The current total cost is 30.
8. Enhancement Evaluation
New Parameters:
- μ′=12
- λ=8 (unchanged)
- Cs′=15
- Cd=5 (unchanged)
Calculate new ρ′ and L′:
ρ′=128=32
L′=1−2/32/3=1/32/3=2
Calculate New Total Cost:
Costnew=Cs′+L′×Cd=15+2×5=15+10=25
Comparison:
- Original Cost: 30
- New Cost: 25
Conclusion:
Since 25<30, the total cost is reduced.
Therefore, the enhancement is economically rational.