D1 May 2024
D1 May 2024
Instructions
• Use black ink or ball-point pen.
• Colouredispencils
If pencil used for diagrams/sketches/graphs it must be dark (HB or B).
and highlighter pens must not be used.
• and
Fill in the boxes on the top of the answer book with your name, centre number
candidate number.
• clearly
Answer all questions and ensure that your answers to parts of questions are
labelled.
• Answer the questions in the D1 answer book provided
– there may be more space than you need.
• You should show sufficient working to make your methods clear.
Answers without working may not gain full credit.
• When a calculator is used, the answer should be given to an appropriate degree
of accuracy.
• Do not return the question paper with the answer book.
Information
• There are 7 questions in this question paper. The total mark for this paper is 75.
• – use this asfora guide
The marks each question are shown in brackets
as to how much time to spend on each question.
Advice
• Read each question carefully before you start to answer it.
• Try to answer every question.
• Check your answers if you have time at the end. Turn over
P74306A
©2024 Pearson Education Ltd.
F:1/1/1/
*P74306A*
Write your answers in the D1 answer book for this paper.
1.
5.2 4.7 6.5 4.5 3.1 5.1 1.8 2.9 3.4 3.8 1.2
(a) Use the first‑fit bin packing algorithm to determine how the eleven numbers listed
above can be packed into bins of size 14
(3)
(b) The list of numbers is to be sorted into ascending order. Use a quick sort to
obtain the sorted list. You should show the result of each pass and identify your
pivots clearly.
(4)
(c) Apply the first‑fit decreasing bin packing algorithm to the sorted list to pack the
numbers into bins of size 14
(3)
(d) Explain why the number of bins used in part (c) is optimal.
(1)
(e) Use the binary search algorithm to try to locate 3.0 in the list of numbers.
Clearly indicate how you choose your pivots and which part of the list is rejected at
each stage.
(3)
(Total for Question 1 is 14 marks)
2 P74306A
2.
G(2)
D(4)
H(4) L(3)
F(3)
E(3)
A(5) I(6) M(2)
B(4)
J(7)
N(2)
C(7)
K(7)
Figure 1
P74306A 3
Turn over
3.
C 61 E 9 H
18
10 40 7
13
A 52 30
J
D
38 51
27 8
20
59
B 34 13
F 5 G
Figure 2
Figure 2 models a network of tracks between nine ranger stations,
A, B, C, D, E, F, G, H and J, in a forest. The number on each edge gives the time, in
minutes, to travel along the corresponding track. The forest ranger wishes to travel from
A to J as quickly as possible.
(a) Use Dijkstra’s algorithm to find the shortest time needed to travel from A to J.
State the quickest route.
(6)
(b) Hence determine the weight of the minimum spanning tree for the network given in
Figure 2. Give a reason for your answer.
You do not need to find the minimum spanning tree.
(2)
(Total for Question 3 is 8 marks)
4 P74306A
BLANK PAGE
P74306A 5
Turn over
4.
J
31
A 15 B
19
36
15 65
7
24
E 23 84
39 H
C
13
56
10 G
40
D 17 F
Figure 3
A B C D E F G H J
A ‑ 15 7 25 15 42 64 51 46
B 15 ‑ 22 40 30 57 49 36 31
C 7 22 ‑ 32 22 49 71 58 53
D 25 40 32 ‑ 10 17 57 70 71
E 15 30 22 10 ‑ 27 67 66 61
F 42 57 49 17 27 ‑ 40 53 72
G 64 49 71 57 67 40 ‑ 13 32
H 51 36 58 70 66 53 13 ‑ 19
J 46 31 53 71 61 72 32 19 ‑
6 P74306A
A route is needed that minimises the total distance to traverse each road at least once.
The route must start at E and finish at F.
(c) Determine the length of this route. You must give a reason for your answer.
(2)
It is now decided to start the route at C and finish the route at A. The route must include
every road at least once and must still minimise the total distance travelled.
(d) By considering the pairings of all relevant nodes, find the roads that need to be
traversed twice.
(4)
Naoko needs to visit all nine factories, starting and finishing at the same factory, and
wishes to minimise the total distance travelled.
(e) Starting at B, use the nearest neighbour algorithm on the table of shortest distances
to find an upper bound for the length of Naoko’s route. Write down the cycle,
obtained from the table of shortest distances, which gives this upper bound.
(2)
(f) By deleting C and all of its arcs, use the values in the table of shortest distances to
find a lower bound for the length of Naoko’s route.
(2)
(Total for Question 4 is 14 marks)
P74306A 7
Turn over
5. The head of a Mathematics department needs to order three types of paper. The three
types of paper are plain, lined and graph.
All three types of paper are sold in reams. (A ream is 500 sheets of paper.)
Based on the last academic year the head of department formed the
following constraints.
• At least half the paper must be lined
• No more than 15% of the paper must be graph paper
• The ratio of plain paper to graph paper must be 5 : 2
The cost of each ream of plain, lined and graph paper is £5, £12 and £15 respectively.
The head of department has at most £834 to spend on paper.
The head of department wants to maximise the total number of reams of paper ordered.
Let x, y and z represent the number of reams of plain paper, lined paper and graph paper
ordered respectively.
(a) Formulate this information as a linear programming problem in x and y only,
stating the objective and listing the constraints as simplified inequalities with
integer coefficients.
(7)
The head of department decides to order exactly 42 reams of lined paper and still wishes
to maximise the total number of reams of paper ordered.
(b) Determine
(i) the total number of reams of paper to be ordered,
(ii) the number of reams of graph paper to be ordered.
(3)
(Total for Question 5 is 10 marks)
8 P74306A
BLANK PAGE
P74306A 9
Turn over
6.
(a) Draw the activity network for the project described in the precedence table, using
activity on arc and the minimum number of dummies.
(5)
0 2 4 6 8 10 12 14 16 18 20 22
B G H M
A
D
C
E
F
I
J
K
Grid 1
10 P74306A
A cascade chart for all the activities of the project, except activity L, is shown on
Grid 1.
The time taken to complete each activity is given in hours and each activity requires
one worker.
The project is to be completed in the minimum time using as few workers as possible.
(b) State the critical activities of the project.
(1)
(c) Use the cascade chart to determine the minimum number of workers needed to
complete the project in the shortest possible time. You must make specific reference
to time and activities. (You do not need to provide a schedule of the activities.)
(2)
The duration of activity L is x hours. Given that the total float of activity L is at most
7 hours,
(d) determine the range of possible values for x.
(2)
(Total for Question 6 is 10 marks)
P74306A 11
Turn over
7.
y
A
R –2x + 5y = 15
O 2x + y = 15 2x + y = 27 x
Figure 4
Figure 4 shows the constraints of a linear programming problem in x and y, where R is
the feasible region.
The equations of three of the lines, and the four intersection points, A, B, C and D,
are shown.
9 21 27 27
The four vertices of R are A , , B (5, 5) , C (10, 7) and D , .
4 2 4 2
P = 2x + ky
where k is a positive constant.
Given that the minimum value of P is at least half of the maximum value of P,
(b) determine the range of possible values of k.
(5)
(Total for Question 7 is 9 marks)
12 P74306A