Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
ChE – 1 / A13
2019102775
For each item, draw the corresponding graph and draw conclusions a required.
1. For each given graph, find two Hamiltonian cycles with different sums of weights.
(E → B → C → A → F → D → E)
Total weight is
= 21 + 25 + 28 + 45 + 72 + 89
= 280
(E → B → C → D → A → E)
Total weight is
= 21 + 25 + 29 + 50 + 57
= 182
from one building to another. Help the personnel to plan out an efficient route to deliver
the order at the least possible time.Use both the Greedy and Edge-Picking algorithms.
S A B C D
t
o
r
e
S - 2 7 2 1
t - 5 5 7
o -
r
e
A 2 - 2 8 1
5 - 0 5
-
B 7 2 -- 2 1
0 - 3 4
C 2 8 2 -- 2
5 3 - 4
D 1 1 1 2 --
7 5 4 4 -
Graph:
The greedy and edge-picking algorithms will have the same cycle:
Store → B → D → A → C → Store
= 7 + 8 + 14 + 15 + 25
= 69