









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










SECTION A
ANSWER ALL THE QUESTIONS FROM THIS SECTION (40 Marks)
A
The following list gives the names of some students who have represented Britain in the International Mathematics Olympiad.
Roper ( R ), Palmer ( P ), Boase ( B ), Young ( Y ), Thomas ( T ), Kenney ( K ), Morris ( M ),
Halliwell ( H ), Wicker ( W ), Garesalingam ( G ).
A computer program uses the Quick Sort algorithm to sort the names above into alphabetical order. Apply the Quick Sort algorithm to the above list in order to determine the number of comparisons needed to sort the list, making your method clear. (7)
(Total 7 marks)
(a) Describe the differences between Prim’s algorithm and Kruskal’s algorithm for finding a minimum connector for a network. (3)
(b) Listing the arcs in the order that you select them, find a minimum connector for the network in the diagram above, using (i) Prim’s algorithm, (ii) Kruskal’s algorithm. (4) (Total 7 marks)
Five tour guides, Alice, Emily, George, Rose and Weidi, need to be assigned to five coach trips, 1, 2, 3, 4 and 5. A bipartite graph showing their preferences is given in Figure 1 and an initial matching is given in Figure 2.
(a) Use the maximum matching algorithm, starting with vertex G, to increase the number of matchings. State the alternating path you used. (2)
(b) List the improved matching you found in (a). (1)
(c) Explain why a complete matching is not possible. (2)
Weidi agrees to be assigned to coach trip 3, 4 or 5.
(d) Starting with your current maximal matching , use the maximum matching algorithm to obtain a complete matching. (3) (Total 8 marks)
The diagram above shows the paths in Bill’s garden. The length of each path is given in metres. Each morning Bill likes to inspect the garden. He starts and finishes at A and traverses each path at least once.
(a) Use the route inspection algorithm to find the minimum distance he must walk. State which paths must be traversed more than once and state a route of minimum length. (6)
Caroline, a friend of Bill’s, wishes to look at the garden covering each path at least once. However, she wants to start at B and finish at a vertex other than B.
(b) In order for Caroline to walk a minimum distance, determine where she should end her walk and the distance she will cover. Explain your method carefully and give a possible route. (5) (Total 11 marks)
(c) Explain what is meant by a critical path. (2)
The sum of all the activity times is 110 days and each activity requires just one worker. The project must be completed in the minimum time.
(d) Calculate a lower bound for the number of workers needed to complete the project in the minimum time. You must show your working. (2)
(e) List the activities that must be happening on day 20. (2)
(f) Comment on your answer to part (e) with regard to the lower bound you found in part (d). (2)
(g) On the Gantt Chart (Cascade Chart) in INSERT 2G , schedule the activities, using the minimum number of workers, so that the project is completed in 30 days.
(Total 20 marks)
The tableau below is the initial tableau for a linear programming problem in x , y and z. The objective is to maximise the profit, P.
basic variable x y z r s t Value r 12 4 5 1 0 0 246
s 9 6 3 0 1 0 153 t 5 2 – 2 0 0 1 171
P – 2 – 4 – 3 0 0 0 0
Using the information in the tableau, write down
(a) the objective function, (2)
(b) the three constraints as inequalities with integer coefficients. (3)
Taking the most negative number in the profit row to indicate the pivot column at each stage,
(c) solve this linear programming problem. Use the tables on INSERT 3 (note: SPARE tables are provided in case of errors: there is no suggestion that you should need all the tables).
Make your method clear by stating the row operations you use. (11)
(d) State the final values of the objective function and each variable. (3)
One of the constraints is not at capacity.
(e) Explain how it can be identified. (1) (Total 20 marks)
INSERT 1 (for answering Question A3 part (a))
Please detach this INSERT and attach it securely to your script.
INSERT 2
(for answering part (a) of Question B1)
Please detach this INSERT and attach it securely to your script.
(a)
INSERT 3 (for answering part (c) of
Question B2)
Please detach this INSERT and attach it securely to your script.
B2 (c)
You may not need to use all of these tableaux.
b.v. x y z r s t Value
Row operations
b.v. x y z r s t Value
Row operations
b.v. x y z r s t Value
Row operations
INSERT 3 (continued)
b.v. x y z r s t Value
Row operations
b.v. x y z r s t Value
Row operations
b.v. x y z r s t Value
Row operations
(9)