Floor 3
Floor 2
Floor 1
Ground
Inside Elevator Control
SCAN Algorithm
How it works:
- Elevator continues in current direction
- Serves all requests in that direction
- Changes direction when no more requests ahead
- Efficient: minimizes back-and-forth movement
Example: If elevator is at Floor 0 going UP and buttons pressed are [2, 1, 3], it will visit: 1 → 2 → 3 (not 2 → 1 → 3)
System Status
Current Floor
Ground
State
IDLE
Direction
---
Request Queue
No pending requests
0
Trips
0
Floors
100%
Efficiency