AQA D1 (Decision Mathematics 1) 2008 January

Question 1
View details
1 Five people, \(A , B , C , D\) and \(E\), are to be matched to five tasks, \(J , K , L , M\) and \(N\). The table shows the tasks that each person is able to undertake.
PersonTask
\(A\)\(J , N\)
\(B\)\(J , L\)
\(C\)\(L , N\)
\(D\)\(M , N\)
\(E\)\(K , M\)
  1. Show this information on a bipartite graph.
  2. Initially, \(A\) is matched to task \(N , B\) to task \(J , C\) to task \(L\), and \(E\) to task \(M\). Complete the alternating path \(D - M \ldots\), from this initial matching, to demonstrate how each person can be matched to a task.
    (3 marks)
Question 2
View details
2 [Figure 1, printed on the insert, is provided for use in this question.]
The feasible region of a linear programming problem is represented by $$\begin{aligned} x + y & \leqslant 30
2 x + y & \leqslant 40
y & \geqslant 5
x & \geqslant 4
y & \geqslant \frac { 1 } { 2 } x \end{aligned}$$
  1. On Figure 1, draw a suitable diagram to represent these inequalities and indicate the feasible region.
  2. Use your diagram to find the maximum value of \(F\), on the feasible region, in the case where:
    1. \(F = 3 x + y\);
    2. \(F = x + 3 y\).
Question 3
View details
3 The diagram shows 10 bus stops, \(A , B , C , \ldots , J\), in Geneva. The number on each edge represents the distance, in kilometres, between adjacent bus stops.
\includegraphics[max width=\textwidth, alt={}, center]{92175666-ef7a-4dca-9cdb-ebde1b40b2c9-03_595_1362_422_331} The city council is to connect these bus stops to a computer system which will display waiting times for buses at each of the 10 stops. Cabling is to be laid between some of the bus stops.
  1. Use Kruskal's algorithm, showing the order in which you select the edges, to find a minimum spanning tree for the 10 bus stops.
  2. State the minimum length of cabling needed.
  3. Draw your minimum spanning tree.
  4. If Prim's algorithm, starting from \(A\), had been used to find the minimum spanning tree, state which edge would have been the final edge to complete the minimum spanning tree.
Question 4
View details
4 [Figure 2, printed on the insert, is provided for use in this question.]
The network shows 11 towns. The times, in minutes, to travel between pairs of towns are indicated on the edges.
\includegraphics[max width=\textwidth, alt={}, center]{92175666-ef7a-4dca-9cdb-ebde1b40b2c9-04_1762_1056_516_484} The total of all of the times is 308 minutes.
    1. Use Dijkstra's algorithm on Figure 2 to find the minimum time to travel from \(A\) to \(K\).
    2. State the corresponding route.
  1. Find the length of an optimum Chinese postman route around the network, starting and finishing at \(A\). (The minimum time to travel from \(D\) to \(H\) is 40 minutes.)
Question 5
View details
5 [Figure 3, printed on the insert, is provided for use in this question.]
  1. James is solving a travelling salesperson problem.
    1. He finds the following upper bounds: \(43,40,43,41,55,43,43\). Write down the best upper bound.
    2. James finds the following lower bounds: 33, 40, 33, 38, 33, 38, 38 . Write down the best lower bound.
  2. Karen is solving a different travelling salesperson problem and finds an upper bound of 55 and a lower bound of 45 . Write down an interpretation of these results.
  3. The diagram below shows roads connecting 4 towns, \(A , B , C\) and \(D\). The numbers on the edges represent the lengths of the roads, in kilometres, between adjacent towns.
    \includegraphics[max width=\textwidth, alt={}, center]{92175666-ef7a-4dca-9cdb-ebde1b40b2c9-05_451_1034_1160_504} Xiong lives at town \(A\) and is to visit each of the other three towns before returning to town \(A\). She wishes to find a route that will minimise her travelling distance.
    1. Complete Figure 3, on the insert, to show the shortest distances, in kilometres, between all pairs of towns.
    2. Use the nearest neighbour algorithm on Figure 3 to find an upper bound for the minimum length of a tour of this network that starts and finishes at \(A\).
    3. Hence find the actual route that Xiong would take in order to achieve a tour of the same length as that found in part (c)(ii).
Question 6
View details
6 A student is solving cubic equations that have three different positive integer solutions.
The algorithm that the student is using is as follows:
Line 10 Input \(A , B , C , D\)
Line \(20 \quad\) Let \(K = 1\)
Line \(30 \quad\) Let \(N = 0\)
Line \(40 \quad\) Let \(X = K\)
Line 50 Let \(Y = A X ^ { 3 } + B X ^ { 2 } + C X + D\)
Line 60 If \(Y \neq 0\) then go to Line 100
Line \(70 \quad\) Print \(X\), "is a solution"
Line \(80 \quad\) Let \(N = N + 1\)
Line 90 If \(N = 3\) then go to Line 120
Line \(100 \quad\) Let \(K = K + 1\)
Line 110 Go to Line 40
Line 120 End
  1. Trace the algorithm in the case where the input values are:
    1. \(A = 1 , B = - 6 , C = 11\) and \(D = - 6\);
    2. \(A = 1 , B = - 10 , C = 29\) and \(D = - 20\).
  2. Explain where and why this algorithm will fail if \(A = 0\).
Question 7
View details
7 The numbers 17, 3, 16 and 4 are to be sorted into ascending order.
The following four methods are to be compared: bubble sort, shuttle sort, Shell sort and quick sort (with the first number used as the pivot). A student uses each of the four methods and produces the correct solutions below. Each solution shows the order of the numbers after each pass.
\multirow[t]{4}{*}{Solution 1}173164
317164
316174
341617
\multirow[t]{3}{*}{Solution 2}173164
163174
341617
\multirow[t]{4}{*}{Solution 3}173164
316417
316417
341617
\multirow[t]{4}{*}{Solution 4}173164
316417
341617
341617
  1. Write down which of the four solutions is the bubble sort, the shuttle sort, the Shell sort and the quick sort.
  2. For each of the four solutions, write down the number of comparisons and swaps (exchanges) on the first pass.
Question 8
View details
8 Each day, a factory makes three types of hinge: basic, standard and luxury. The hinges produced need three different components: type \(A\), type \(B\) and type \(C\). Basic hinges need 2 components of type \(A , 3\) components of type \(B\) and 1 component of type \(C\). Standard hinges need 4 components of type \(A , 2\) components of type \(B\) and 3 components of type \(C\). Luxury hinges need 3 components of type \(A\), 4 components of type \(B\) and 5 components of type \(C\). Each day, there are 360 components of type \(A\) available, 270 of type \(B\) and 450 of type \(C\). Each day, the factory must use at least 720 components in total.
Each day, the factory must use at least \(40 \%\) of the total components as type \(A\).
Each day, the factory makes \(x\) basic hinges, \(y\) standard hinges and \(z\) luxury hinges.
In addition to \(x \geqslant 0 , y \geqslant 0 , z \geqslant 0\), find five inequalities, each involving \(x , y\) and \(z\), which must be satisfied. Simplify each inequality where possible.