Introduction
Imagine a busy elevator in a tall building that needs to pick up and drop off passengers efficiently. The problem is how to serve requests in a way that reduces waiting time and avoids unnecessary back-and-forth movement. The SCAN algorithm solves this problem for disk scheduling by moving the disk arm in one direction, servicing requests along the way, then reversing direction at the end.