F
(Choose 1 answer)
(See picture)
A. gh, fi
B. bc. bd
C. gh. bd
D. gh, bc
E. fi, bc
F. fi, bd
vat fini
If we use the Prim algorithm to find a minimum tree, what are the fifth and sixth edges (in correct order) added?
We always assume that an edge is written with two endpoints following the alphabet order (which means we write edge "ad"instead of "da"). We suppose that at each stage, if we have many choices, we will choose in reverse dictionary order. For example, if we have to choose between edges 'bc', 'de', 'az',we will choose 'de' first.
5
3
7
4
6
2
5
3
f
1
Ex 42