Give a thought though to the poor device driver of a hard disk drive. It is responsible for creating this illusion of a block device to the device-independant parts of the OS. It is constantly bombarded by requests to read and write blocks. It must then translate these block requests into decisions to read or write sectors (or whole tracks), moving the read/write head of the disk as necessary.
The high-level software just wants blocks moved as fast as possible. The device driver knows that this will involve the slow process of seeking the heads to the correct cylinder, then issuing a read or a write request. If it has received several block requests, the device driver is free to satisfy them in any order. To minimise the amount of head movement, or to increase throughput, it may decide to satisfy them in a different order than that in which they were issued.
Remember that there may be several tracks in a single cylinder, and many sectors per track, so many requests may be satisfied at each cylinder.
This is shortest-seek first. It cuts down total arm motion dramatically (by about half). Unfortunately this algorithm falls prey to one flaw: when there are many requests pending, the head will tend to hang around the middle of the disk, going for the nearest cylinders, and avoiding far off ones. This means that some requests, those for cylinders to the edges of the disk, may have to wait a long time for service.
For this reason, lifts and many device drivers use the so-called elevator algorithm. In this scheme, the disk head (or lift car) moves across the disk (or building), satisfying all the requests in one direction, before turning around, and satisfying the requests in the other direction... and so on.
Sometimes known as the SCAN algorithm---'SCAN' doesn't stand for anything.
One variation on the elevator algorithm is to only scan the disk in one direction: when the read/write head gets to one end of the disk, it moves straight back to the other end of the disk, without servicing any requests on the way, and starts again. This algorithm, sometimes known as the C-SCAN (circular scan) algorithm, provides for a smaller variance in response time.