7.02c Graph terminology: walk, trail, path, cycle, route

36 questions

Sort by: Default | Easiest first | Hardest first
OCR D1 2006 January Q3
6 marks Moderate -0.8
3 Consider the following algorithm.
Step 1: Input a positive integer \(n\).
Step 2 : Draw a graph consisting of \(n\) vertices and no arcs.
Step 3 : Create a new vertex and join it directly to every vertex of order 0.
Step 4: Create a new vertex and join it directly to every vertex of odd order.
Step 5 : Stop.
  1. Draw separate diagrams to show the result of applying this algorithm in the following cases.
    1. \(n = 1\)
    2. \(n = 2\)
    3. \(n = 3\)
    4. \(n = 4\)
    5. State how many arcs are in the graph that results when the algorithm is applied to a set of \(n\) vertices.
OCR D1 2007 January Q3
9 marks Moderate -0.8
3 A simple graph is one in which any two vertices are directly connected by at most one arc and no vertex is directly connected to itself. A connected graph is one in which every vertex is connected, directly or indirectly, to every other vertex. A simply connected graph is one that is both simple and connected.
  1. A simply connected graph is drawn with 6 vertices and 9 arcs.
    1. What is the sum of the orders of the vertices?
    2. Explain why if the graph has two vertices of order 5 it cannot have any vertices of order 1.
    3. Explain why the graph cannot have three vertices of order 5 .
    4. Draw an example of a simply connected graph with 6 vertices and 9 arcs in which one of the vertices has order 5 and all the orders of the vertices are odd numbers.
    5. Draw an example of a simply connected graph with 6 vertices and 9 arcs that is also Eulerian.
OCR D1 2010 January Q2
10 marks Moderate -0.3
2 A simple graph is one in which any two vertices are directly connected by at most one arc and no vertex is directly connected to itself. A connected graph is one in which every vertex is joined, directly or indirectly, to every other vertex.
A simply connected graph is one that is both simple and connected.
  1. Explain why there is no simply connected graph with exactly five vertices each of which is connected to exactly three others.
  2. A simply connected graph has five vertices \(A , B , C , D\) and \(E\), in which \(A\) has order \(4 , B\) has order 2, \(C\) has order 3, \(D\) has order 3 and \(E\) has order 2. Explain how you know that the graph is semi-Eulerian and write down a semi-Eulerian trail on this graph. A network is formed from the graph in part (ii) by weighting the arcs as given in the table below.
    \(A\)\(B\)\(C\)\(D\)\(E\)
    \(A\)-5382
    \(B\)5-6--
    \(C\)36-7-
    \(D\)8-7-9
    \(E\)2--9-
  3. Apply Prim's algorithm to the network, showing all your working, starting at vertex \(A\). Draw the resulting tree and state its total weight. A sixth vertex, \(F\), is added to the network using arcs \(C F\) and \(D F\), each of which has weight 6 .
  4. Use your answer to part (iii) to write down a lower bound for the length of the minimum tour that visits every vertex of the extended network, finishing where it starts. Apply the nearest neighbour method, starting from vertex \(A\), to find an upper bound for the length of this tour. Explain why the nearest neighbour method fails if it is started from vertex \(F\).
OCR D1 2011 January Q3
8 marks Moderate -0.8
3
  1. Explain why it is impossible to draw a graph with exactly four vertices of orders 1, 2, 3 and 3 . A simple graph is one in which any two vertices are directly connected by at most one arc and no vertex is directly connected to itself. A connected graph is one in which every vertex is joined, directly or indirectly, to every other vertex.
    A simply connected graph is one that is both simple and connected.
  2. Explain why there is no simply connected graph with exactly four vertices of orders \(1,1,2\) and 4.
  3. A connected graph has four vertices \(A , B , C\) and \(D\), in which \(A , B\) and \(C\) have order 2 and \(D\) has order 4. Explain how you know that the graph is Eulerian. Draw an example of such a graph and write down an Eulerian trail for your graph. A graph has three vertices, \(A , B\) and \(C\) of orders \(a , b\) and \(c\), respectively.
  4. What restrictions on the values of \(a , b\) and \(c\) follow from the graph being
    1. simple,
    2. connected,
    3. semi-Eulerian?
      1. Describe carefully how to carry out the first pass through bubble sort when we are using it to sort a list of \(n\) numbers into increasing order. State which value is guaranteed to be in its correct final position after the first pass and hence explain how to carry out the second pass on a reduced list. Write down the stopping condition for bubble sort.
      2. Show the list of six values that results at the end of each pass when we use bubble sort to sort this list into increasing order. $$\begin{array} { l l l l l l } 3 & 10 & 8 & 2 & 6 & 11 \end{array}$$ You do not need to count the number of comparisons and the number of swaps that are used. Zack wants to cut lengths of wood from planks that are 20 feet long. The following lengths, in feet, are required. $$\begin{array} { l l l l l l } 3 & 10 & 8 & 2 & 6 & 11 \end{array}$$
      3. Use the first-fit method to find a way to cut the pieces.
      4. Use the first-fit decreasing method to find a way to cut the pieces. Give a reason why this might be a more useful cutting plan than that from part (iii).
      5. Find a more efficient way to cut the pieces. How many planks will Zack need with this cutting plan and how many cuts will he need to make? 5 An online shopping company selects some of its parcels to be checked before posting them. Each selected parcel must pass through three checks, which may be carried out in any order. One person must check the contents, another must check the postage and a third person must check the address. The parcels are classified according to the type of customer as 'new', 'occasional' or 'regular'. The table shows the time taken, in minutes, for each check on each type of parcel.
        1. Since \(a \leqslant 6\) it follows that \(6 - a \geqslant 0\), and similarly for \(b\) and \(c\). Let \(6 - a = x\) (so that \(a\) is replaced by \(6 - x ) , 8 - b = y\) and \(10 - c = z\) to show that the problem can be expressed as $$\begin{array} { l l } \text { Maximise } & 2 x - 4 y + 5 z , \\ \text { subject to } & 3 x + 2 y - z \leqslant 14 , \\ & 2 x - 4 z \leqslant 7 , \\ & - 4 x + y \leqslant 4 , \\ \text { and } & x \geqslant 0 , y \geqslant 0 , z \geqslant 0 . \end{array}$$
        2. Represent the problem as an initial Simplex tableau. Perform two iterations of the Simplex algorithm, showing how each row was obtained. Hence write down the values of \(a , b\) and \(c\) after two iterations. Find the value of the objective for the original problem at this stage.
          [0pt] [10]
OCR D1 2007 June Q1
9 marks Moderate -0.8
1 Two graphs A and B are shown below. \begin{figure}[h]
\includegraphics[alt={},max width=\textwidth]{dbf782dd-879c-4f0f-b532-246a0db9f130-2_339_585_333_386} \captionsetup{labelformat=empty} \caption{Graph \(A\)}
\end{figure} \begin{figure}[h]
\includegraphics[alt={},max width=\textwidth]{dbf782dd-879c-4f0f-b532-246a0db9f130-2_337_579_333_1174} \captionsetup{labelformat=empty} \caption{Graph B}
\end{figure}
  1. Write down an example of a cycle on graph A .
  2. W hy is \(\mathrm { U } - \mathrm { Y } - \mathrm { V } - \mathrm { Z } - \mathrm { Y } - \mathrm { X }\) not a path on graph B ?
  3. How many arcs would there be in a spanning tree for graph A ?
  4. For each graph state whether it is Eulerian, semi-Eulerian or neither.
  5. The graphs show designs to be etched on metal plates. The etching tool is positioned at a starting point and follows a route without repeating any arcs. It may be lifted off and positioned at a new starting point. W hat is the smallest number of times that the etching tool must be positioned, including the initial position, to draw each graph? An arc is drawn connecting Q to U , so that the two graphs become one. The resulting graph is not Eulerian.
  6. Extra arcs are then added to make an Eulerian graph. W hat is the smallest number of extra arcs that need to be added?
OCR MEI D1 2008 January Q1
8 marks Moderate -0.8
1 The graph shows routes that are available to an international lorry driver. The solid arcs represent motorways and the broken arcs represent ferry crossings. \includegraphics[max width=\textwidth, alt={}, center]{dfe6db33-33d0-4dff-95f7-fbf097e3963e-2_668_1131_587_466}
  1. Give a route from Milan to Chania involving exactly two ferry crossings. How many such routes are there?
  2. Give a route from Milan to Chania involving exactly three ferry crossings. How many such routes are there?
  3. Give a route from Milan to Chania using as many ferry crossings as possible, without repeating any arc.
    [0pt]
  4. Give a route leaving Piraeus and finishing elsewhere which uses every arc once and only once.[3]
OCR MEI D1 2008 June Q3
8 marks Moderate -0.8
3 The graph represents four towns together with (two-way) roads connecting them. \includegraphics[max width=\textwidth, alt={}, center]{8eba759f-38bc-4d14-ac65-9a0ee6c79741-4_191_286_319_886} A path is a set of connected arcs linking one vertex to another. A path contains no repeated vertex. \(\mathrm { T } _ { 1 } \rightarrow \mathrm {~T} _ { 2 }\) and \(\mathrm { T } _ { 1 } \rightarrow \mathrm {~T} _ { 3 } \rightarrow \mathrm {~T} _ { 2 }\) are paths.
  1. There are six paths from \(\mathrm { T } _ { 1 }\). List them.
  2. List the paths from \(\mathrm { T } _ { 4 }\).
  3. How many paths are there altogether? For this question a route is defined to be a path in which the direction of the arcs is not relevant. Thus \(\mathrm { T } _ { 1 } \rightarrow \mathrm {~T} _ { 2 }\) and \(\mathrm { T } _ { 2 } \rightarrow \mathrm {~T} _ { 1 }\) are the same route. Similarly \(\mathrm { T } _ { 1 } \rightarrow \mathrm {~T} _ { 3 } \rightarrow \mathrm {~T} _ { 2 }\) and \(\mathrm { T } _ { 2 } \rightarrow \mathrm {~T} _ { 3 } \rightarrow \mathrm {~T} _ { 1 }\) are the same route (but note that \(\mathrm { T } _ { 1 } \rightarrow \mathrm {~T} _ { 2 } \rightarrow \mathrm {~T} _ { 3 }\) is different).
  4. How many routes are there altogether?
Edexcel D1 Q3
7 marks Easy -1.2
3. (a) Draw a graph with 6 vertices, each of degree 1 .
(b) Draw two graphs with 6 vertices, each of degree 2 such that:
  1. the graph is connected,
  2. the graph is not connected. A simple connected graph has 5 vertices each of degree \(x\).
    (c) Find the possible values of \(x\) and explain your answer.
    (d) For each value of \(x\) you found in part (c) draw a possible graph.
Edexcel D1 Q4
11 marks Standard +0.3
4. The following matrix gives the capacities of the pipes in a system.
To FromS\(T\)A\(B\)\(C\)D
S--1626--
T------
A----135
B-16---11
C-11----
D-11----
  1. Represent this information as a digraph.
  2. Find the minimum cut, expressing it in the form \(\{ \} \mid \{ \}\), and state its value.
  3. Starting from having no flow in the system, use the labelling procedure to find a maximal flow through the system. You should list each flow-augmenting route you use, together with its flow.
  4. Explain how you know that this flow is maximal.
Edexcel D2 2008 June Q2
4 marks Easy -1.8
2. Explain what is meant, in a network, by (a) a walk, (b) a tour.
(2) (2) (Total 4 marks)
OCR D2 2014 June Q1
6 marks Moderate -0.5
1 Six students are choosing their tokens for a board game. The bipartite graph in Fig. 1 shows which token each student is prepared to have. \begin{figure}[h]
\includegraphics[alt={},max width=\textwidth]{cfa46190-9a1e-4552-a551-c28d5c4286ad-2_522_976_351_525} \captionsetup{labelformat=empty} \caption{Fig. 1}
\end{figure} Initially Ezra takes the flat iron, Jonah the old boot, Lily the racing car and Molly the scottie dog. This leaves Adele and Noah with tokens that they do not want. This incomplete matching is shown in Fig. 2 below. \begin{table}[h]
Adele(A)\includegraphics[max width=\textwidth, alt={}]{cfa46190-9a1e-4552-a551-c28d5c4286ad-2_47_43_1210_750}(B)Battleship
Ezra(E)(F)Flat iron
Jonah(J)\includegraphics[max width=\textwidth, alt={}]{cfa46190-9a1e-4552-a551-c28d5c4286ad-2_45_377_1389_759}(O)Old boot
Lily(L)\includegraphics[max width=\textwidth, alt={}]{cfa46190-9a1e-4552-a551-c28d5c4286ad-2_45_377_1486_759}(R)Racing car
Molly(M)\includegraphics[max width=\textwidth, alt={}]{cfa46190-9a1e-4552-a551-c28d5c4286ad-2_44_377_1583_759}(S)Scottie dog
Noah(N)\includegraphics[max width=\textwidth, alt={}]{cfa46190-9a1e-4552-a551-c28d5c4286ad-2_40_29_1684_764}(T)Top hat
\captionsetup{labelformat=empty} \caption{Fig. 2}
\end{table}
  1. Write down the shortest possible alternating path that starts at A and finishes at either B or T . Hence write down a matching that only excludes Noah and one of the tokens.
  2. Working from the incomplete matching found in part (i), write down the shortest possible alternating path that starts at N and finishes at whichever of B and T has still not been taken. Hence write down a complete matching between the students and the tokens.
  3. By starting at B on Fig. 1, show that there are exactly two complete matchings between the students and the tokens.
OCR D2 2015 June Q1
5 marks Moderate -0.8
1 The infamous fictional detective Agatha Parrot is working on a case and decides to invite each of the four suspects to visit her for tea. She will invite one suspect to tea on Sunday (S), another on Monday (M), another on Tuesday (T) and the final suspect on Wednesday (W).
  • Beryl Batty (B) could come to tea on Sunday or Monday but she is away for a few days after that.
  • Colonel Chapman (C) could come to tea on Sunday or Tuesday, but is busy on the other days.
  • Dimitri Delacruz (D) could only come to tea on Monday or Wednesday.
  • Erina El-Sayed (E) could come to tea on Sunday, Monday or Tuesday, but will be away on Wednesday.
    1. Draw a bipartite graph to show which suspects could come to tea on which day.
Agatha initially intended to invite Beryl to tea on Sunday, Dimitri on Monday and Colonel Chapman on Tuesday. However this would mean that Erina would not be able to come to tea, as she will be away on Wednesday.
  • Draw a second bipartite graph to show this incomplete matching.
  • Working from this incomplete matching, find the shortest possible alternating path, starting at Erina, to achieve a breakthrough. Write down which suspect is invited on which day with this matching. Before issuing invitations, Agatha overhears Erina making arrangements to go to tea with the vicar one day. She knows that Erina will not want to accept two invitations to tea on the same day. Unfortunately, Agatha does not know which day Erina has arranged to go to tea with the vicar, other than that it was not Sunday. Agatha invites Erina to tea on Sunday and the others when she can. After having tea with all four suspects she considers what they have said and invites them all back on Friday. She then accuses the person who came to tea on Monday of being guilty.
  • Who does Agatha accuse of being guilty?
  • OCR D2 2016 June Q1
    7 marks Standard +0.3
    1 Josh is making a calendar. He has chosen six pictures, each of which will represent two months in the calendar. He needs to choose which picture to use for each two-month period. The bipartite graph in Fig. 1 shows for which months each picture is suitable. \begin{figure}[h]
    \includegraphics[alt={},max width=\textwidth]{490ff276-6639-40a1-bffb-dc6967f3ab21-2_497_1246_488_415} \captionsetup{labelformat=empty} \caption{Fig. 1}
    \end{figure} Initially Josh chooses the sailing ships for March/April, the sunset for July/August, the snow scene for November/December and the swans for May/June. This incomplete matching is shown in Fig. 2 below. \begin{table}[h]
    Sailing ships(1)January/February
    Seascape(2)• ◯(MA)March/April
    Snow scene(3)\includegraphics[max width=\textwidth, alt={}]{490ff276-6639-40a1-bffb-dc6967f3ab21-2_54_381_1451_716}(MJ)May/June
    Street scene\includegraphics[max width=\textwidth, alt={}]{490ff276-6639-40a1-bffb-dc6967f3ab21-2_59_38_1536_712}(JA)July/August
    Sunset(5)(SO)September/October
    Swans(6)(ND)November/December
    \captionsetup{labelformat=empty} \caption{Fig. 2}
    \end{table}
    1. Write down the shortest possible alternating path that starts at (JF) and finishes at either (2) or (4). Hence write down a matching that only excludes (SO) and one of the pictures.
    2. Working from the incomplete matching found in part (i), write down the shortest possible alternating path that starts at (SO) and finishes at whichever of (2) and (4) has still not been matched. Hence write down a complete matching between the pictures and the months.
    3. Explain why three of the arcs in Fig. 1 must appear in the graph of any complete matching. Hence find a second complete matching.
    OCR D2 Specimen Q1
    9 marks Moderate -0.8
    1 [Answer this question on the insert provided.]
    Six neighbours have decided to paint their houses in bright colours. They will each use a different colour.
    • Arthur wants to use lavender, orange or tangerine.
    • Bridget wants to use lavender, mauve or pink.
    • Carlos wants to use pink or scarlet.
    • Davinder wants to use mauve or pink.
    • Eric wants to use lavender or orange.
    • Ffion wants to use mauve.
    Arthur chooses lavender, Bridget chooses mauve, Carlos chooses pink and Eric chooses orange. This leaves Davinder and Ffion with colours that they do not want.
    1. Draw a bipartite graph on the insert, showing which neighbours ( \(\mathrm { A } , \mathrm { B } , \mathrm { C } , \mathrm { D } , \mathrm { E } , \mathrm { F }\) ) want which colours (L, M, O, P, S, T). On a separate diagram on the insert, show the incomplete matching described above.
    2. By constructing alternating paths obtain the complete matching between the neighbours and the colours. Give your paths and show your matching on the insert.
    3. Fill in the table on the insert to show how the Hungarian algorithm could have been used to find the complete matching. (You do not need to carry out the Hungarian algorithm.)
    OCR Further Discrete AS 2020 November Q3
    8 marks Moderate -0.3
    3 \includegraphics[max width=\textwidth, alt={}, center]{c2deec7d-0617-4eb0-a47e-5b42ba55b753-4_399_1331_255_367}
    1. By listing the vertices passed through, in the order they are used, give an example for the graph above of:
      1. a walk from A to H that is not a trail,
      2. a trail from A to H that is not a path,
      3. a path from A to H that is not a cycle. The arcs are weighted to form a network. The arc weights are shown in the table, apart from the weight of arc AG. The arcs model a system of roads and the weights represent distances in km.
        ABCDEFGH
        A-3-8--\(x\)-
        B3-5-----
        C-5-43---
        D8-4-5--9
        E--35-76-
        F----7---
        G\(x\)---6--2
        H---9--2-
        The road modelled by arc AG is temporarily closed.
    2. Use the matrix form of Prim's algorithm to find a minimum spanning tree, of total weight 30 km , that does not include arc AG. The road modelled by arc AG is now reopened.
      1. For what set of values of \(x\) could AG be included in a minimum spanning tree for the full network?
      2. Which arc from the minimum spanning tree in part (b) is not used when arc AG is included?
    OCR Further Discrete 2022 June Q4
    13 marks Challenging +1.2
    4 A connected graph is shown below. \includegraphics[max width=\textwidth, alt={}, center]{50697293-6cdc-475f-981f-71a351b0ff5a-4_442_954_296_246}
    1. Write down a path through exactly 7 of the vertices.
    2. Write down a cycle through exactly 6 of the vertices.
    3. Explain why Ore's theorem cannot be used to decide whether or not this graph is Hamiltonian.
    4. Prove that the graph is not Hamiltonian. The following colouring algorithm can be used to determine whether a connected graph is bipartite or not. The algorithm colours each vertex of a graph in one of two colours, (1) and (2). STEP 1 Choose a vertex and assign it colour (1).
      STEP 2 If any vertex is adjacent to another vertex of the same colour, stop. Otherwise assign colour (2) to each vertex that is adjacent to a vertex with colour (1).
      STEP 3 If any vertex is adjacent to another vertex of the same colour, stop. Otherwise assign colour (1) to each vertex that is adjacent to a vertex with colour (2).
      STEP 4 Repeat STEP 2 and STEP 3 until all vertices are coloured.
      STEP 5 If there are no adjacent vertices of the same colour then the graph is bipartite, output the word "bipartite".
      Otherwise the graph is not bipartite, output the words "not bipartite".
    5. Use this algorithm, starting at vertex A, to determine whether the graph is bipartite, or not. [2
    6. Explain what Kuratowski's theorem tells you about the graph.
    7. Show that the graph has thickness 2 .
    Edexcel D1 2020 January Q2
    8 marks Easy -1.8
    2. \begin{figure}[h]
    \includegraphics[alt={},max width=\textwidth]{b6d09c46-abfd-4baa-80bd-7485d1bf8e0d-03_759_1401_196_331} \captionsetup{labelformat=empty} \caption{Figure 1}
    \end{figure}
    1. Define the terms
      1. tree,
      2. minimum spanning tree.
    2. Use Kruskal's algorithm to find the minimum spanning tree for the network shown in Figure 1. You must clearly show the order in which you consider the edges. For each edge, state whether or not you are including it in the minimum spanning tree.
    3. Draw the minimum spanning tree using the vertices given in Diagram 1 in the answer book and state the weight of the minimum spanning tree.
    Edexcel D1 2015 June Q3
    12 marks Moderate -0.8
    3. \begin{figure}[h]
    \includegraphics[alt={},max width=\textwidth]{6417303d-c42a-4da4-b0fa-fb7718959417-4_591_1365_239_360} \captionsetup{labelformat=empty} \caption{Figure 2}
    \end{figure} Figure 2 shows a graph G.
    1. Write down an example of a cycle on G.
      (1)
    2. State, with a reason, whether or not \(\mathrm { P } - \mathrm { Q } - \mathrm { R } - \mathrm { T } - \mathrm { Q } - \mathrm { S }\) is an example of a path on G .
      (2) \begin{figure}[h]
      \includegraphics[alt={},max width=\textwidth]{6417303d-c42a-4da4-b0fa-fb7718959417-4_618_1406_1336_340} \captionsetup{labelformat=empty} \caption{Figure 3}
      \end{figure} The numbers on the \(14 \operatorname { arcs }\) in Figure 3 represent the distances, in km , between eight vertices, \(\mathrm { P } , \mathrm { Q }\), \(\mathrm { R } , \mathrm { S } , \mathrm { T } , \mathrm { U } , \mathrm { V }\) and W , in a network.
    3. Use Prim's algorithm, starting at P , to find the minimum spanning tree for the network. You must clearly state the order in which you select the arcs of your tree.
    4. Use Kruskal's algorithm to find the minimum spanning tree for the network. You should list the arcs in the order in which you consider them. In each case, state whether you are adding the arc to the minimum spanning tree.
    5. Draw the minimum spanning tree using the vertices given in Diagram 1 in the answer book. The weight on arc RU is now increased to a value of \(x\). The minimum spanning tree for the network is still unique and includes the same arcs as those found in (e).
    6. Write down the smallest interval that must contain \(x\).
    Edexcel D1 2016 June Q5
    17 marks Moderate -0.3
    5. \begin{figure}[h]
    \includegraphics[alt={},max width=\textwidth]{049de386-42a9-4f16-8be3-9324382e4988-06_899_1241_230_411} \captionsetup{labelformat=empty} \caption{Figure 4
    [0pt] [The total weight of the network is 88]}
    \end{figure}
    1. Explain what is meant by the term 'path'.
      (2) Figure 4 represents a network of roads. The number on each arc represents the length, in km, of the corresponding road. Tomek wishes to travel from A to J.
    2. Use Dijkstra's algorithm to find the shortest path from A to J. State your path and its length.
      (6) On a particular day, Tomek needs to travel from G to J via A.
    3. Find the shortest route from G to J via A , and find its length.
      (3) The road HJ becomes damaged and cannot be used. Tomek needs to travel along all the remaining roads to check that there is no damage to any of them. The inspection route he uses must start and finish at B .
    4. Use an appropriate algorithm to find the length of a shortest inspection route. State the arcs that should be repeated. You should make your method and working clear.
      (5)
    5. Write down a possible shortest inspection route.
      (1)
    Edexcel D1 2018 June Q3
    8 marks Easy -1.2
    3. \begin{figure}[h]
    \includegraphics[alt={},max width=\textwidth]{5b18e92c-540e-4e89-8d60-d60294f50dda-04_595_1269_207_397} \captionsetup{labelformat=empty} \caption{Figure 3}
    \end{figure} Figure 3 shows a graph G that contains \(17 \operatorname { arcs }\) and 8 vertices.
    1. State how many arcs there are in a spanning tree for G .
      (1)
    2. Explain why a path on G cannot contain 10 vertices.
      (2)
    3. Determine the number of arcs that would need to be added to G to make G a complete graph with 8 vertices.
      (1) \begin{figure}[h]
      \includegraphics[alt={},max width=\textwidth]{5b18e92c-540e-4e89-8d60-d60294f50dda-04_684_1326_1420_370} \captionsetup{labelformat=empty} \caption{Figure 4}
      \end{figure} Figure 4 shows a weighted graph.
    4. Use Prim's algorithm, starting at C , to find the minimum spanning tree for the weighted graph. You must clearly state the order in which you select the arcs of the tree.
      (3)
    5. State the weight of the minimum spanning tree.
      (1)
    Edexcel D1 2013 January Q4
    11 marks Moderate -0.3
    4. \begin{figure}[h]
    \includegraphics[alt={},max width=\textwidth]{bd6edbd4-1ec0-4c7e-bd39-b88f96bf52fb-4_629_1392_187_319} \captionsetup{labelformat=empty} \caption{Figure 4}
    \end{figure}
    1. Explain what is meant, in a network, by the term path.
      (2) Figure 4 represents a network of canals. The number on each arc represents the length, in miles, of the corresponding canal.
    2. Use Dijkstra's algorithm to find the shortest path from S to T . State your path and its length.
    3. Write down the length of the shortest path from S to F . Next week the canal represented by \(\operatorname { arc } \mathrm { AB }\) will be closed for dredging.
    4. Find a shortest path from S to T avoiding AB and state its length.
    Edexcel D1 2012 June Q2
    7 marks Moderate -0.8
    2. \begin{figure}[h]
    \includegraphics[alt={},max width=\textwidth]{4ad45e8f-f50a-4125-866b-a6951f85600f-3_474_593_264_372} \captionsetup{labelformat=empty} \caption{Figure 1}
    \end{figure} \begin{figure}[h]
    \includegraphics[alt={},max width=\textwidth]{4ad45e8f-f50a-4125-866b-a6951f85600f-3_474_588_267_1096} \captionsetup{labelformat=empty} \caption{Figure 2}
    \end{figure} Figure 1 shows the possible allocations of five workers, Charles (C), David (D), Ellie (E), Freya (F) and Georgi (G), to five tasks, 1, 2, 3, 4 and 5. Figure 2 shows an initial matching.
    1. Starting from this initial matching, use the maximum matching algorithm to find a complete matching. State clearly the alternating path that you use and list your final matching.
      (4)
    2. Find another solution starting from the given initial matching. You should state the alternating path and list the complete matching it gives.
      (3)
    Edexcel D1 2013 June Q1
    7 marks Moderate -0.5
    1. \begin{figure}[h]
    \includegraphics[alt={},max width=\textwidth]{1493d74b-e9ef-4c9a-91f6-877c1eaa74e2-02_533_551_365_402} \captionsetup{labelformat=empty} \caption{Figure 1}
    \end{figure} \begin{figure}[h]
    \includegraphics[alt={},max width=\textwidth]{1493d74b-e9ef-4c9a-91f6-877c1eaa74e2-02_529_545_365_1098} \captionsetup{labelformat=empty} \caption{Figure 2}
    \end{figure} Figure 1 shows the possible allocations of six people, \(\mathrm { A } , \mathrm { B } , \mathrm { C } , \mathrm { D } , \mathrm { E }\) and F , to six tasks, 1, 2, 3, 4, 5 and 6. Figure 2 shows an initial matching.
    1. Starting from the given initial matching, use the maximum matching algorithm to find an improved matching. You should list the alternating path you used, and your improved matching.
    2. Explain why it is not possible to find a complete matching. After training, task 4 is added to F's possible allocation and task 6 is added to E's possible allocation.
    3. Starting from the improved matching found in (a), use the maximum matching algorithm to find a complete matching. You should list the alternating path you used and your complete matching.
    Edexcel D1 2013 June Q1
    7 marks Moderate -0.8
    1. \begin{figure}[h]
    \includegraphics[alt={},max width=\textwidth]{5b32eb57-c9cd-46ec-a328-12050148bdf7-2_766_570_324_342} \captionsetup{labelformat=empty} \caption{Figure 1}
    \end{figure} \begin{figure}[h]
    \includegraphics[alt={},max width=\textwidth]{5b32eb57-c9cd-46ec-a328-12050148bdf7-2_755_570_331_1146} \captionsetup{labelformat=empty} \caption{Figure 2}
    \end{figure} Figure 1 shows the possible allocations of six people, Alex (A), Ben (B), Harriet (H), Izzy (I), Leo (L) and Rowan (R), to six tasks, \(1,2,3,4,5\) and 6.
    1. Write down the technical name given to the type of diagram shown in Figure 1. Figure 2 shows an initial matching.
    2. Starting from the given initial matching, use the maximum matching algorithm to find a complete matching. You should list the alternating paths you use, and state your improved matching after each iteration.
      (6)
    Edexcel D1 2014 June Q2
    7 marks Moderate -0.8
    2. \begin{figure}[h]
    \includegraphics[alt={},max width=\textwidth]{23cc3c59-35d8-4120-9965-952c0ced5b3d-3_437_399_251_511} \captionsetup{labelformat=empty} \caption{Figure 1}
    \end{figure} \begin{figure}[h]
    \includegraphics[alt={},max width=\textwidth]{23cc3c59-35d8-4120-9965-952c0ced5b3d-3_437_401_251_1151} \captionsetup{labelformat=empty} \caption{Figure 2}
    \end{figure} Figure 1 shows the possible allocations of five employees, Ali (A), Campbell (C), Hugo (H), Janelle (J) and Polly (P), to five tasks 1, 2, 3, 4 and 5.
    1. Explain why it is not possible to find a complete matching. It is decided that one of the employees should be trained so that a complete matching becomes possible. There are only enough funds for one employee to be trained. Two employees volunteer to undergo training. Janelle can be trained to do task 1 or Hugo can be trained to do task 5.
    2. Decide which employee, Janelle or Hugo, should undergo training. Give a reason for your answer. You may now assume that the employee you identified in (b) has successfully undergone training. Figure 2 shows an initial matching.
    3. Starting from the given initial matching, use the maximum matching algorithm to find a complete matching. You should list the alternating path that you use, and state the complete matching.