Multiple choice

6 Files F1, F2, F3, F4, F5 and F6 have 100, 200, 30, 80, 120, 150 records respectively. In what order should they be stored so as to optimize activity? Assume each file is accessed with the same frequency.

  1. F2, F3, F1, F5, F6, F2

  2. F2, F6, F5, F1, F4, F3

  3. F1, F2, F3, F4, F5, F6

  4. Ordering is immaterial as all files are accessed with the same frequency.

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Since, the access is sequential greater the distance greater will be the access time. Since, all files are referenced with equal frequency overall access time can be reduced by arranging them as in option (1).