List the arcs in ascending order of weight
DF=3,EG=10,FG=21,EH=22,BG=25,BC=27,DE=28,BD=36,CG=38,AD=44,FH=49,AB=53,CD=54 Kruskal's algorithm looks at the arcs in order of increasing weight.
Consider arc DF: its ends are in different components, so accept it
DF=3acceptrunning total=3 Accepting this arc joins two separate parts of the forest.
Consider arc EG: its ends are in different components, so accept it
EG=10acceptrunning total=13 Accepting this arc joins two separate parts of the forest.
Consider arc FG: its ends are in different components, so accept it
FG=21acceptrunning total=34 Accepting this arc joins two separate parts of the forest.
Consider arc EH: its ends are in different components, so accept it
EH=22acceptrunning total=56 Accepting this arc joins two separate parts of the forest.
Consider arc BG: its ends are in different components, so accept it
BG=25acceptrunning total=81 Accepting this arc joins two separate parts of the forest.
Consider arc BC: its ends are in different components, so accept it
BC=27acceptrunning total=108 Accepting this arc joins two separate parts of the forest.
Consider arc DE: both ends are already connected, so reject it
DE=28reject (cycle) Adding this arc would close a cycle, which a tree may not contain.
Consider arc BD: both ends are already connected, so reject it
BD=36reject (cycle) Adding this arc would close a cycle, which a tree may not contain.
Consider arc CG: both ends are already connected, so reject it
CG=38reject (cycle) Adding this arc would close a cycle, which a tree may not contain.
Consider arc AD: its ends are in different components, so accept it
AD=44acceptrunning total=152 Accepting this arc joins two separate parts of the forest.
Stop: the tree now has n−1 arcs
arcs=7=8−1 A spanning tree on 8 vertices has exactly 7 arcs, so the algorithm terminates.
Add the weights of the arcs in the tree
3+10+21+22+25+27+44=152 The minimum spanning tree is DF,\;EG,\;FG,\;EH,\;BG,\;BC,\;AD.
Cross-check the tree with Prim's algorithm
Prim:AD,DF,FG,EG,EH,BG,BCtotal=152 Kruskal's and Prim's algorithms must produce the same minimum spanning tree, so this is a strong check on the answer.
Select the option giving Kruskal's order of insertion
order:DF,EG,FG,EH,BG,BC,AD The weights are all different, so this order is the only possible one.
AnswerDF,\;EG,\;FG,\;EH,\;BG,\;BC,\;AD