python disk_scheduler.py
The output is as follows:
The total distance the disk arm moves for each algorithm is as follows:
Total Moves: 81,857,1084,504,2256,1074,1262,1167,3442,1284 FCFS total: 13011
Total Moves: 81,227,504,881,1284,3347,95,311,668,188 SSTF total: 7586
Total Moves: 146,504,881,1284,2930,451,95,311,668,188 SCAN total: 7492
Total Moves: 146,504,881,1284,2896,451,95,311,668,188 LOOK total: 7424
Total Moves: 146,504,881,1284,34,4999,356,188,668,311,95,451 C-SCAN total: 9917
Total Moves: 146,504,881,1284,4609,188,668,311,95,451 C-LOOK total: 9137