OCR A Level: Decision 1 - First-Fit Method [June 2011 Q7]

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.

( i ) (\text{i}) Use the first-fit method to group the files into folders.

( ii ) (\text{ii}) Use the first-fit decreasing method to group the files into folders.

First-fit decreasing is a quadratic order algorithm.

( iii ) (\text{iii}) 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 ( ii ) (\text{ii}) as your answer.


There are 3 marks available for part (i), 3 marks for part (ii) and 2 marks for part (iii).
In total, this question is worth 11.1% of all available marks in the paper.

This is part of the set OCR A Level Problems .


The answer is 997.

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.

1 solution

Michael Fuller
Mar 14, 2016

The mark scheme for this question: Large Version

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...