22.05.2013 Views

Euristiche per il problema del commesso viaggiatore

Euristiche per il problema del commesso viaggiatore

Euristiche per il problema del commesso viaggiatore

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Cicli ham<strong>il</strong>toniani e <strong>per</strong>mutazioni<br />

• Ogni Ciclo Ham<strong>il</strong>toniano corrisponde a una <strong>per</strong>mutazione (non unica) dei<br />

vertici, e ogni <strong>per</strong>mutazione corrisponde a un ciclo Ham<strong>il</strong>toniano (unico)<br />

G(V,E)<br />

6<br />

f<br />

e<br />

f<br />

6<br />

e<br />

3<br />

3<br />

3<br />

3<br />

a<br />

2 5<br />

5<br />

d<br />

a<br />

d<br />

7<br />

2 5<br />

5<br />

7<br />

2<br />

3 b<br />

1<br />

6<br />

5<br />

4<br />

7<br />

6<br />

c<br />

2<br />

3<br />

1 b<br />

6<br />

5<br />

4<br />

7<br />

6<br />

c<br />

f<br />

e<br />

f<br />

d<br />

6<br />

5<br />

6<br />

5<br />

a<br />

1<br />

4<br />

d<br />

a<br />

1<br />

4<br />

c<br />

3<br />

b<br />

2<br />

c<br />

b<br />

2<br />

3e<br />

{a, b, c, d, e, f}<br />

{a, b, e, c, d, f}<br />

• Fissato <strong>il</strong> primo elemento nella <strong>per</strong>mutazione (es. a), ogni altro elemento<br />

occupa univocamente una posizione pari oppure dispari<br />

T

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!