Storing Files on Tape

Understand the different techniques used to solve the storing files on tape problem efficiently.

Introduction to storing files

Suppose we have a set of nn files that we want to store on a magnetic tape. In the future, users will want to read those files from the tape. Reading a file from tape isn’t like reading a file from a disk; first, we have to fast-forward past all the other files, and that takes a significant amount of time. Let L[1..n]L[1 .. n] be an array listing the lengths of each file; specifically, file ii has length L[i]L[i]. If the files are stored in order from 11 to n ...

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy