All flashcards topics

Minimum spanning treesEdexcel A-Level Further Maths: Flashcards

Card 1 of 130 of 13 known

Question

What is a minimum spanning tree?

Tap or press Space to reveal

Tap card or press Space to flip

See all 13 cards
What is a minimum spanning tree?
A spanning tree with the smallest possible total weight.
How many edges does a spanning tree of a network with nn vertices have?
n−1n-1
Outline Kruskal's algorithm.
Sort edges in increasing weight; accept each unless it forms a cycle; stop at n−1n-1 edges.
Why does Kruskal's algorithm reject an edge?
Its two ends are already connected, so it would form a cycle.
Outline Prim's algorithm.
Start at any vertex; repeatedly add the shortest edge joining the tree to a new vertex.
Can Prim's algorithm form a cycle?
No: it only ever adds an edge to a vertex not yet in the tree.
In matrix Prim's, what do you do with the start vertex's row?
Delete the row and number its column 1.
In matrix Prim's, what do you circle each time?
The smallest entry in the numbered columns, in a row not yet deleted.
What does a dash mean in a distance matrix?
There is no direct edge between those vertices.
What is special about the matrix of an undirected network?
It is symmetric about the leading diagonal.
Is the minimum spanning tree unique?
Yes if all the edge weights are different.
Does a minimum spanning tree give the shortest route between two vertices?
Not necessarily. It minimises total weight only.
If an edge in the tree is removed from the network, what do you do?
Re-find the tree: join the vertex by its cheapest remaining edge.

Exam questions on Minimum spanning trees

  1. A network has six vertices AA, BB, CC, DD, EE and FF. Its edges and weights are AB=7AB=7, AC=4AC=4, BC=6BC=6, BD=9BD=9, CD=5CD=5, CE=8CE=8, DE=3DE=3, DF=12DF=12 and EF=10EF=10.
    Explain why Kruskal's algorithm rejects the edge ABAB.2 marks
  2. Five towns AA, BB, CC, DD, EE are linked by roads. The distance matrix (in km) is given row by row, with columns in the order AA to EE and a dash meaning no direct road. Row AA: −-, 66, 99, −-, −- Row BB: 66, −-, 44, 88, −- Row CC: 99, 44, −-, 77, 55 Row DD: −-, 88, 77, −-, 33 Row EE: −-, −-, 55, 33, −-
    The road DEDE is closed for repairs. Find the total length of the minimum spanning tree of the remaining roads.2 marks
  3. A company must connect six villages PP, QQ, RR, SS, TT and UU with cable. The possible links and their costs, in thousands of pounds, are PQ=14PQ=14, PR=9PR=9, QR=11QR=11, QS=8QS=8, RS=12RS=12, RT=10RT=10, ST=6ST=6, SU=13SU=13 and TU=7TU=7.
    Use Kruskal's algorithm to find a minimum spanning tree, listing the edges in the order they are considered and stating which are accepted and which rejected.3 marks
See the full worksheet

Written by the Exaim team, led by Shaun Daswani (Head of Upper Secondary, Improve ME Institute; MSc Financial Mathematics, Imperial College London; BSc, UCL) and Jason Daswani (operational lead, Improve ME Institute; LSE).