AQA D1 (Decision Mathematics 1) 2005 January

Question 1
View details
1 A student is using the algorithm below.
LINE 10INPUT \(A , B\)
LINE 20LET \(C = A - B\)
LINE 30LET \(D = A + B\)
LINE 40LET \(E = ( D * D ) - ( C * C )\)
LINE 50LET \(F = E / 4\)
LINE 60PRINT \(F\)
LINE 70END
Trace the algorithm in the case where \(A = 5\) and \(B = 3\).
Question 2
View details
2
  1. Use a bubble sort algorithm to rearrange the following numbers into ascending order, showing the new arrangement after each pass. $$\begin{array} { l l l l l l l l } 19 & 3 & 7 & 20 & 2 & 6 & 5 & 15 \end{array}$$
  2. Write down the number of comparisons and the number of swaps during the first pass.
    (2 marks)
Question 3
View details
3 A local council is responsible for gritting roads. The diagram shows the length, in miles, of the roads that have to be gritted.
\includegraphics[max width=\textwidth, alt={}, center]{76bccb26-f2ec-4798-bb6b-89c922f9651a-03_671_686_488_669} Total length \(= 87\) miles The gritter is based at \(A\), and must travel along all the roads, at least once, before returning to \(A\).
  1. Explain why it is not possible to start from \(A\) and, by travelling along each road only once, return to \(A\).
  2. Find an optimal 'Chinese postman' route around the network, starting and finishing at \(A\). State the length of your route.
Question 4
View details
4 The Head Teacher of a school is allocating five teachers, Amy ( \(A\) ), Ben ( \(B\) ), Celia ( \(C\) ), Duncan ( \(D\) ), and Erica ( \(E\) ), to the five posts of Head of Year 7, 8, 9, 10 and 11. The five teachers are asked which year(s) they would be willing to take. This information is shown below. Amy is willing to take Year 7 or Year 8 . Ben is willing to take Year 7, Year 8 or Year 10. Celia is willing to take Year 8, Year 9 or Year 11. Duncan will take only Year 9.
Erica will take only Year 11.
  1. Show this information on a bipartite graph.
  2. Initially the Head Teacher assigns Amy to Year 8, Ben to Year 10, Celia to Year 9 and Erica to Year 11. Demonstrate, by using an alternating path from this initial matching, how each teacher can be matched to a year that they are willing to take.
Question 5
View details
5 The network shows the lengths, in miles, of roads connecting eleven villages.
\includegraphics[max width=\textwidth, alt={}, center]{76bccb26-f2ec-4798-bb6b-89c922f9651a-04_1100_1575_406_251}
  1. Use Prim's algorithm, starting from \(A\), to find the minimum spanning tree for the network.
  2. State the length of your minimum spanning tree.
  3. Draw your minimum spanning tree.
  4. A student used Kruskal's algorithm to find the same minimum spanning tree. Find the seventh and eighth edges that the student added to his spanning tree.
Question 6
View details
6 [Figure 1, printed on a separate sheet, is provided for use in this question.]
A theme park is built on two levels. The levels are connected by a staircase. There are five rides on each of the levels. The diagram shows the ten rides: \(A , B , \ldots \ldots J\). The numbers on the edges represent the times, in minutes, taken to travel between pairs of rides.
\includegraphics[max width=\textwidth, alt={}, center]{76bccb26-f2ec-4798-bb6b-89c922f9651a-05_984_1593_584_226}
  1. Use Dijkstra's algorithm on Figure 1 to find the minimum time to travel from \(A\) to \(J\).
  2. A new staircase is built connecting rides \(B\) and \(G\). The time taken to travel from \(B\) to \(G\) using this staircase is \(x\) minutes, where \(x\) is an integer. The time taken to travel from \(A\) to \(G\) is reduced, but the time taken to travel from \(A\) to \(J\) is not reduced. Find two inequalities for \(x\) and hence state the value of \(x\).
    (4 marks)
Question 7
View details
7 Rob delivers bread to six shops \(A , B , C , D , E\) and \(F\). Each day, Rob starts at shop \(A\), travels to each of the other shops before returning to shop \(A\). The table shows the distances, in miles, between the shops.
\(\boldsymbol { A }\)\(\boldsymbol { B }\)\(\boldsymbol { C }\)\(\boldsymbol { D }\)\(\boldsymbol { E }\)\(\boldsymbol { F }\)
\(\boldsymbol { A }\)-869127
\(\boldsymbol { B }\)8-1014138
\(\boldsymbol { C }\)610-71610
\(\boldsymbol { D }\)9147-155
\(\boldsymbol { E }\)12131615-11
\(\boldsymbol { F }\)7810511-
    1. Find the length of the tour \(A B C D E F A\).
    2. Find the length of the tour obtained by using the nearest neighbour algorithm starting from \(A\).
  1. By deleting \(A\), find a lower bound for the length of a minimum tour.
  2. By deleting \(F\), another lower bound of 45 miles is obtained for the length of a minimum tour. The length of a minimum tour is \(T\) miles. Write down the smallest interval for \(T\) which can be obtained from your answers to parts (a) and (b), and the information given in this part.
    (3 marks)
Question 8
View details
8 [Figure 2, printed on a separate sheet, is provided for use in this question.]
A bakery makes two types of pizza, large and medium.
Every day the bakery must make at least 40 of each type.
Every day the bakery must make at least 120 in total but not more than 400 pizzas in total.
Each large pizza takes 4 minutes to make, and each medium pizza takes 2 minutes to make. There are four workers available, each for five hours a day, to make the pizzas. The bakery makes a profit of \(\pounds 3\) on each large pizza sold and \(\pounds 1\) on each medium pizza sold.
Each day, the bakery makes and sells \(x\) large pizzas and \(y\) medium pizzas.
The bakery wishes to maximise its profit, \(\pounds P\).
  1. Show that one of the constraints leads to the inequality $$2 x + y \leqslant 600$$
  2. Formulate this situation as a linear programming problem.
  3. On Figure 2, draw a suitable diagram to enable the problem to be solved graphically, indicating the feasible region and an objective line.
  4. Use your diagram to find the maximum daily profit.
  5. The bakery introduces a new pricing structure in which the profit is \(\pounds 2\) on each large pizza sold and \(\pounds 2\) on each medium pizza sold.
    1. Find the new maximum daily profit for the bakery.
    2. Write down the number of different combinations that would give the new maximum daily profit.