This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Six health and safety inspectors, A, B, C, D, E and F must visit six places of work, 1, 2, 3, 4, 5, and 6. The table shows the possible allocations of inspectors to places of work.
b Draw a bipartite graph to model this situation (1)
Initially A is assigned to 4, B is assigned to 2, C is assigned to 3 and D is assigned to 6.
c Draw a bipartite graph to illustrate this initial matching. (1)
d Starting from this initial matching, find an alternating path, starting from E, to form an improved matching. List your improved matching. (3)
e Starting from your improved matching apply the maximum matching algorithm once again to find a complete matching. (3)
2 Hettie, Leo, Ramin, Amro, Tom, Jing, Yonnie, Sue, Mark
a Use a bubble sort to produce a list of names in alphabetical order. You must give the state of the list after each pass. (5)
b Use the binary search algorithm to locate the name Ramin. (4)
3 8 14 5 11 10 3 6 12
The numbers in the list represent the lengths, in metres, of eight lengths of cable.The lengths are to be cut from rolls which each hold 20 m of cable.
a Obtain a lower bound for the number of rolls needed to supply the eight lengthsof cable. (2)
b Use the first-fit bin packing algorithm to determine which lengths should be cut from each roll. (3)
Inspector Places of workA 3 or 4B 1, 2 or 5C 2 or 3D 1 or 6E 4F 6
c Use the first-fit decreasing bin packing algorithm to determine which lengths should be cut from each roll. (3)
4
A B C D E F
A – 54 22 40 36 36
B 54 – 30 26 16 22
C 22 30 – 20 14 14
D 40 26 20 – 18 24
E 36 16 14 18 – 6
F 36 22 14 24 6 –
The table shows the costs, in pounds, of travelling between six towns, A, B, C, D, E and F.
a Use Prim’s algorithm, starting at A, to find a minimum spanning tree for this table of costs. You must list the arcs that form your tree in the order that they are selected. (3)
b Draw your tree and state its weight. (2)
5
Figure 1 above, shows a network of roads. The number on each arc represents the length of that road in km.
a Use Dijkstra’s algorithm to find the shortest path from A to G. Complete the boxes on your answer sheet to show your working. State your shortest path and its length. (6)
The network in the figure above, shows the activities that need to be undertaken to complete a project. Each activity is represented by an arc. The number in brackets is the duration of the activity in days. The early and late event times are shown at each vertex.
a Complete the diagram to show the values of p, q, r, s, t, u, v, w, x and y.(4)
b List the critical activities. (1)
c Calculate the total float on activities E and H. You must show the numbers you used in your calculation. (3)
d Draw a cascade (Gantt) chart for the project. (5)
e Write down the activities that must be happening at midday on day 13.(2)