Which of the following is a correct way to assign an elevator to a new request in a multiple elevator system?
easy📝 Architecture Q12 of 15
LLD - Design — Elevator System
Which of the following is a correct way to assign an elevator to a new request in a multiple elevator system?
AAlways assign the elevator on the ground floor
BAssign the elevator farthest from the request floor regardless of direction
CAssign the elevator closest to the request floor moving in the same direction
DAssign elevators randomly to balance usage
Step-by-Step Solution
Solution:
Step 1: Understand assignment criteria
Elevators should be assigned based on proximity and direction to minimize wait time.
Step 2: Analyze options
Assign the elevator closest to the request floor moving in the same direction matches this logic. Options A, B, and C ignore direction or proximity, causing inefficiency.
Final Answer:
Assign the elevator closest to the request floor moving in the same direction -> Option C
Quick Check:
Closest elevator + direction match = correct assignment [OK]
Quick Trick:Match elevator direction and proximity for assignment [OK]
Common Mistakes:
MISTAKES
Ignoring elevator direction when assigning
Choosing elevators randomly
Always picking ground floor elevator
Master "Design — Elevator System" in LLD
9 interactive learning modes - each teaches the same concept differently