Files
unique/src/content/find/2026/08/elevators/index.mdx
T

15 lines
869 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
name: "Elevators"
subtitle: "Why the elevator isn't coming, run at 25× until you can see the answer"
date: 2026-08-02
shortlist: true
link: "https://john.fun/elevators"
linkText: "john.fun"
source: "Hacker News — Show HN"
topics: [web-tools, learning-and-reference]
tags: [interactive, algorithms, explainer, free]
description: "An interactive explainer on elevator scheduling — SCAN, LOOK and multi-car dispatch, all running live in the page at up to 25× speed."
---
The SCAN algorithm was patented in 1961: ride to the top, reverse, collect everyone on the way down. LOOK stops at the highest floor actually requested, which is the behaviour you already expect from a lift. Both run live in the page at 1×, 5× or 25×, and a button drops five fresh calls into the shafts so you can watch the assign-it-to-the-nearest-car rule come apart in front of you.