Skip to content

slnguyen/cse6140_tsp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cse6140_tsp

MST 2-approx:

To output runtime and solution quality for MST 2-approx, run:

bash get_mst_dist_runtime.sh

from the /plot directory. Output should look something like:

Atlanta
MST 2-approx TSP distance: 2756145, elapsed time(ms): 3.69310379028

Berlin
MST 2-approx TSP distance: 10603, elapsed time(ms): 11.589050293

Boston
MST 2-approx TSP distance: 1242717, elapsed time(ms): 5.59782981873
....

Local search neighborhood 2-opt exchange:

To output runtime and solution quality for local search neighborhood 2-opt exchange, run:

bash get_local_search_dist_runtime.sh "2opt" 100

from the /plot directory. Output should look something like:

Atlanta
2opt TSP distance: 2053901.580000 +/- 35262.824967 , elapsed time(ms): 7.288544 +/- 0.763090 

Berlin
2opt TSP distance: 8361.530000 +/- 273.846394 , elapsed time(ms): 19.683192 +/- 4.325759 

Boston
2opt TSP distance: 935291.560000 +/- 23641.387403 , elapsed time(ms): 14.298782 +/- 2.807561 
....

Plot Qualified Runtime Distributions (QRTD) and Solution Quality Distributions (SQD)

To plot QRTDs and SQDs for the local search neighborhood 2-opt exchange algorithm, run:

bash plt_local_search.sh

from the /plot directory.

Example QRTD:

Example SQD:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published