Assignment 4 (Aradhy Ranade)
Assignment 4 (Aradhy Ranade)
Assignment 4 (Aradhy Ranade)
Two edges are called incident, if they share a vertex. Also, a vertex and an edge are
called incident, if the vertex is one of the two vertices the edge connects.
Dallas 1
Denver 2
Washington 3
Atlanta 4
Houston 5
Chicago 6
0 1 2 3 4 5 6
0 0 200 0 0 0 160 0
2 0 0 0 0 140 0 100
0 0
3 0 1300 0 0 600 0 0
4 0 0 0 600 0 800 0
5 0 0 0 0 800 0 0
6 0 0 100 0 0 0 0
0
Adjency list
Denver Arlanta,Chicago
Houston Atlanta
Chicago Denver
Steps
(i) A
4
(ii). A-----------B
4. 3
(iii). A-----------B-----------D
4. 3. 3
(iv) A-----------B-----------D-------------C
4. 3. 3. 3
(v). A-----------B-----------D-------------C-----------F
Kruskals method
Steps
3
(i). F--------C
3. 3
(ii). F---------C-------------D
3. 3. 3
(iii). F---------C-------------D-------------B
(iv) 3. 3. 3. 4
F---------C-------------D-------------B-------------A