Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  Suppose there are six files F1, F2, F3, F4, F... Start Learning for Free
Suppose there are six files F1, F2, F3, F4, F5, F6 with corresponding sizes 150 KB, 225 KB, 75 KB, 60 KB, 275 KB and 65 KB respectively. The files are to be stored on a sequential device in such a way that optimizes access time. In what order should the files be stored ?
  • a)
    F5, F2, F1, F3, F6, F4
  • b)
    F4, F6, F3, F1, F2, F5
  • c)
    F1, F2, F3, F4, F5, F6
  • d)
    F6, F5, F4, F3, F2, F1
Correct answer is option 'B'. Can you explain this answer?
Most Upvoted Answer
Suppose there are six files F1, F2, F3, F4, F5, F6 with corresponding ...
For access time optimization sort the files in incresing order of file size. So, option (B) is correct.
Free Test
Community Answer
Suppose there are six files F1, F2, F3, F4, F5, F6 with corresponding ...
Explanation:

To optimize access time, the files should be stored in such a way that reduces seek time. Seek time is the time taken by the device to position the read/write head to the desired location on the storage medium.

Seek time is influenced by the following factors:
1. Distance: The distance the read/write head needs to move to access the file.
2. Order: The order in which the files are stored on the device.

To minimize seek time, we should arrange the files in increasing order of their sizes, as smaller files will require less movement of the read/write head.

Calculating the seek time for each option:

Let's calculate the seek time for each option and choose the one with the minimum seek time.

a) F5, F2, F1, F3, F6, F4:
Seek Time = Distance(F5, F2) + Distance(F2, F1) + Distance(F1, F3) + Distance(F3, F6) + Distance(F6, F4)

b) F4, F6, F3, F1, F2, F5:
Seek Time = Distance(F4, F6) + Distance(F6, F3) + Distance(F3, F1) + Distance(F1, F2) + Distance(F2, F5)

c) F1, F2, F3, F4, F5, F6:
Seek Time = Distance(F1, F2) + Distance(F2, F3) + Distance(F3, F4) + Distance(F4, F5) + Distance(F5, F6)

d) F6, F5, F4, F3, F2, F1:
Seek Time = Distance(F6, F5) + Distance(F5, F4) + Distance(F4, F3) + Distance(F3, F2) + Distance(F2, F1)

Calculating the seek time:

To calculate the seek time, we need to determine the distance between each pair of files. Assuming the read/write head starts at the first file and moves linearly to the subsequent files, the distance between two files can be calculated as the absolute difference between their sizes.

Seek Time for option a:
Distance(F5, F2) = |275 - 225| = 50
Distance(F2, F1) = |225 - 150| = 75
Distance(F1, F3) = |150 - 75| = 75
Distance(F3, F6) = |75 - 65| = 10
Distance(F6, F4) = |65 - 60| = 5

Seek Time (a) = 50 + 75 + 75 + 10 + 5 = 215

Seek Time for option b:
Distance(F4, F6) = |60 - 65| = 5
Distance(F6, F3) = |65 - 75| = 10
Distance(F3, F1) = |75 - 150| = 75
Distance(F1, F2) = |150 - 225| = 75
Distance(F2, F5) = |225 -
Explore Courses for Computer Science Engineering (CSE) exam

Similar Computer Science Engineering (CSE) Doubts

Top Courses for Computer Science Engineering (CSE)

Suppose there are six files F1, F2, F3, F4, F5, F6 with corresponding sizes 150 KB, 225 KB, 75 KB, 60 KB, 275 KB and 65 KB respectively. The files are to be stored on a sequential device in such a way that optimizes access time. In what order should the files be stored ?a)F5, F2, F1, F3, F6, F4b)F4, F6, F3, F1, F2, F5c)F1, F2, F3, F4, F5, F6d)F6, F5, F4, F3, F2, F1Correct answer is option 'B'. Can you explain this answer?
Question Description
Suppose there are six files F1, F2, F3, F4, F5, F6 with corresponding sizes 150 KB, 225 KB, 75 KB, 60 KB, 275 KB and 65 KB respectively. The files are to be stored on a sequential device in such a way that optimizes access time. In what order should the files be stored ?a)F5, F2, F1, F3, F6, F4b)F4, F6, F3, F1, F2, F5c)F1, F2, F3, F4, F5, F6d)F6, F5, F4, F3, F2, F1Correct answer is option 'B'. Can you explain this answer? for Computer Science Engineering (CSE) 2024 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about Suppose there are six files F1, F2, F3, F4, F5, F6 with corresponding sizes 150 KB, 225 KB, 75 KB, 60 KB, 275 KB and 65 KB respectively. The files are to be stored on a sequential device in such a way that optimizes access time. In what order should the files be stored ?a)F5, F2, F1, F3, F6, F4b)F4, F6, F3, F1, F2, F5c)F1, F2, F3, F4, F5, F6d)F6, F5, F4, F3, F2, F1Correct answer is option 'B'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Suppose there are six files F1, F2, F3, F4, F5, F6 with corresponding sizes 150 KB, 225 KB, 75 KB, 60 KB, 275 KB and 65 KB respectively. The files are to be stored on a sequential device in such a way that optimizes access time. In what order should the files be stored ?a)F5, F2, F1, F3, F6, F4b)F4, F6, F3, F1, F2, F5c)F1, F2, F3, F4, F5, F6d)F6, F5, F4, F3, F2, F1Correct answer is option 'B'. Can you explain this answer?.
Solutions for Suppose there are six files F1, F2, F3, F4, F5, F6 with corresponding sizes 150 KB, 225 KB, 75 KB, 60 KB, 275 KB and 65 KB respectively. The files are to be stored on a sequential device in such a way that optimizes access time. In what order should the files be stored ?a)F5, F2, F1, F3, F6, F4b)F4, F6, F3, F1, F2, F5c)F1, F2, F3, F4, F5, F6d)F6, F5, F4, F3, F2, F1Correct answer is option 'B'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of Suppose there are six files F1, F2, F3, F4, F5, F6 with corresponding sizes 150 KB, 225 KB, 75 KB, 60 KB, 275 KB and 65 KB respectively. The files are to be stored on a sequential device in such a way that optimizes access time. In what order should the files be stored ?a)F5, F2, F1, F3, F6, F4b)F4, F6, F3, F1, F2, F5c)F1, F2, F3, F4, F5, F6d)F6, F5, F4, F3, F2, F1Correct answer is option 'B'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Suppose there are six files F1, F2, F3, F4, F5, F6 with corresponding sizes 150 KB, 225 KB, 75 KB, 60 KB, 275 KB and 65 KB respectively. The files are to be stored on a sequential device in such a way that optimizes access time. In what order should the files be stored ?a)F5, F2, F1, F3, F6, F4b)F4, F6, F3, F1, F2, F5c)F1, F2, F3, F4, F5, F6d)F6, F5, F4, F3, F2, F1Correct answer is option 'B'. Can you explain this answer?, a detailed solution for Suppose there are six files F1, F2, F3, F4, F5, F6 with corresponding sizes 150 KB, 225 KB, 75 KB, 60 KB, 275 KB and 65 KB respectively. The files are to be stored on a sequential device in such a way that optimizes access time. In what order should the files be stored ?a)F5, F2, F1, F3, F6, F4b)F4, F6, F3, F1, F2, F5c)F1, F2, F3, F4, F5, F6d)F6, F5, F4, F3, F2, F1Correct answer is option 'B'. Can you explain this answer? has been provided alongside types of Suppose there are six files F1, F2, F3, F4, F5, F6 with corresponding sizes 150 KB, 225 KB, 75 KB, 60 KB, 275 KB and 65 KB respectively. The files are to be stored on a sequential device in such a way that optimizes access time. In what order should the files be stored ?a)F5, F2, F1, F3, F6, F4b)F4, F6, F3, F1, F2, F5c)F1, F2, F3, F4, F5, F6d)F6, F5, F4, F3, F2, F1Correct answer is option 'B'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Suppose there are six files F1, F2, F3, F4, F5, F6 with corresponding sizes 150 KB, 225 KB, 75 KB, 60 KB, 275 KB and 65 KB respectively. The files are to be stored on a sequential device in such a way that optimizes access time. In what order should the files be stored ?a)F5, F2, F1, F3, F6, F4b)F4, F6, F3, F1, F2, F5c)F1, F2, F3, F4, F5, F6d)F6, F5, F4, F3, F2, F1Correct answer is option 'B'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev