The passage
An archive uses a program that checks a file in progressively smaller sections. Stage 0 consists of one check. Each check leads to two checks at the next stage, so stage contains checks. All checks are carried out one after another on the same computer.
The first check takes 12 minutes of processing time. The program is designed so that each check at the next stage needs only of the processing time of its parent check. This is an ideal model for the processing time, before allowing for the work needed to start a check.
For example, stage 1 has two checks taking minutes each, so its total processing time is 9 minutes. Let be the total processing time of stage , and let be the combined processing time of stages 0 through , inclusive.
The archive would like to stop when the processing time omitted from all later stages is less than 2 minutes, according to the ideal model. This is a rule for choosing the number of stages; it does not mean that the remaining sections have actually been checked.
A trial reveals a second cost: every check takes a further 3 seconds to initialise. This time is additional to its processing time and does not become smaller at later stages. Let be the total running time, in minutes, including initialisation, for stages 0 through .
The archive can allow at most 50 minutes for the program to run. It needs to choose the greatest complete stage that fits this time allowance, and determine whether the original rule about omitted processing time is still achievable.
1. Read the stage rule [2 marks]
For stage 2, state the number of checks and calculate the total processing time.
Show worked solution
2. Find the ideal workload [3 marks]
Show that . Hence find a formula for and its limiting value as increases.
Show worked solution
Since , the limiting processing time is 48 minutes.
3. Apply the stopping rule [3 marks]
In the ideal model, find the smallest integer for which the combined processing time of all stages after stage is less than 2 minutes. Show how your answer meets the strict inequality.
Show worked solution
The inequality reverses on division because . Hence the smallest integer is .
4. Include initialisation [3 marks]
Show that . Explain why has no finite limit even though does.
Show worked solution
The number of checks increases without bound, and each has a fixed positive initialisation time. The initialisation term therefore increases without bound, despite the finite limit of the processing term.
5. Choose a feasible stage [4 marks]
Find the greatest complete stage for which . Justify that no greater value can work. Determine whether this choice also meets the omitted-processing-time rule from question 3.
Show worked solution
Every further stage adds positive processing and initialisation times, so is strictly increasing. The greatest permitted stage is therefore .
This does not meet the original stopping rule. Stage 11 would be needed for that rule, but it cannot fit the 50-minute allowance.