Docsity

Solutions to Exercises - Computer Algorithms I | MCS 401, Assignments of Algorithms and Programming

Partial preview of the text

Download Solutions to Exercises - Computer Algorithms I | MCS 401 and more Assignments Algorithms and Programming in PDF only on Docsity!

Edges and vertices selected (Prim) Edges selected (Kruskal)

New Edge New Vertex Weight

 - Solutions to Week #13-14 Exercises V, W, X, Y โ€“ Spring - AB B A - AF F - FC C - BD D 
  • DN N
  • NO O
    • OP P
  • NQ Q
    • QL L
    • LK K - KJ J
    • LG G
  • GH H - HI I
    • HE E
  • HM M - DN New Edge Weight - HI - QL - HE - AB - GH - KJ - NO - OP - LK - NQ - FC - AF - HM - LG - BD

W.

X. a) NE, DG, FC, OI, OL

b) IM c) CA, CB, DA, HB, HE, HJ, HN, IF, LC, LF, LN, KG

Y.

A

D

G

C

K

M

F

L

O

I

J N

B

E

H

1,

2,

3,8 (^) 5,

11,

12,

13,

15,

24,

25,

4,

23,

22,

21,

19,

1, 2,

4,7 5,6 3,

9,

10,

26,

12,

29,

17,

15,

14, 13,

21,