Complete the code to describe the direction of the SCAN algorithm.
The SCAN algorithm moves the disk arm in one [1] until it reaches the end of the disk.
The SCAN algorithm moves the disk arm in one direction servicing requests until it reaches the end of the disk.
Complete the code to explain what happens after the SCAN algorithm reaches the last request in one direction.
After reaching the end of the disk in one direction, the disk arm [1] and starts servicing requests in the opposite direction.
After reaching the end of the disk in one direction, the disk arm reverses and starts servicing requests in the opposite direction.
Fix the error in the description of the SCAN algorithm's movement.
The SCAN algorithm moves the disk arm in one direction to service requests, reversing direction at the end of the disk. This is called [1].
The SCAN algorithm moves the disk arm in one direction servicing requests and reverses direction at the disk's end. It is also called the elevator algorithm.
Fill both blanks to complete the SCAN algorithm's behavior description.
The SCAN algorithm services requests by moving the disk arm towards the [1] end, then reverses direction at the [2] end.
The SCAN algorithm moves the disk arm towards the start end of the disk, then reverses direction at the end end, servicing requests along the way.
Fill all three blanks to complete the dictionary comprehension describing SCAN's request servicing.
serviced = {track: requests[track] for track in range([1], [2], [3]) if track in requests}This comprehension collects requests from start_track to end_track moving by step (which can be +1 or -1 depending on direction) to simulate SCAN's servicing order.