Data Structures

1: Six files Fl, F2, F3, F4, F5 and F6 have 100,200,50,80, 120, 150 number of records respectively. In what order should they be stored so as to optimize access time? Assume each file is accessed with the same frequency.  
A.

 F3, F4, FI, F5, F6, F2

B.

 F2, F6, F5, Fl, F4, F3

C.

Fl, F2, F3, F4, F5, F6

D.

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

 

Answer : A

Explanation :

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

Write your comments here:


Report Error
 

Option: A

Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here.