Skip to content
Go back

Elevator Algorithms: An Interactive Exploration

8 min read

Understanding Elevator Algorithms

Elevator algorithms are fascinating examples of everyday optimization problems. They need to balance multiple competing factors:

Common Algorithms

1. FCFS (First Come, First Served)

2. SCAN (Elevator Algorithm)

3. LOOK

Interactive Simulation

This simulation features an automated request generation system that simulates real-world elevator traffic patterns:

Traffic Patterns

Simulation Controls

Simulation Controls

Algorithm:
0
0
0
0
1
0
0
0
2
0
0
0
3
0
0
0
4
0
0
0
5
0
0
0
6
0
0
0
7
0
0
0
0
0
0
0
0
1
0
0
0
2
0
0
0
3
0
0
0
4
0
0
0
5
0
0
0
6
0
0
0
7
0
0
0
0

System Metrics

Average Wait:
0s
Total Distance:
0 floors
Longest Wait:
0s
Requests Served:
0 / 0
Pending Requests:
0

Pending Requests

FromToWait Time

Share this post on:

Previous Post
Statechart Diagrams: Visualizing Complex System Behavior
Next Post
Vibe Coding: The Art of Programming with Flow and Intuition