The memory requirements, in KB, for eight computer files are given below.
The files are to be grouped into folders. No folder is to contain more than 1000KB, so that the folders are small enough to transfer easily between machines.Use the first-fit method to group the files into folders.
Use the first-fit decreasing method to group the files into folders.
First-fit decreasing is a quadratic order algorithm.
A computer takes 1.3 seconds to apply first-fit decreasing to a list of 500 numbers. Approximately how long will it take to apply first-fit decreasing to a list of 5000 numbers?
Input the sum of all the computer file sizes in the second folder to part as your answer.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
The mark scheme for this question: Large Version