• Keine Ergebnisse gefunden

Search Based Software Engineering Exercise 01 - Traveling Salesman Problem 2019-04-23

N/A
N/A
Protected

Academic year: 2022

Aktie "Search Based Software Engineering Exercise 01 - Traveling Salesman Problem 2019-04-23"

Copied!
2
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Search Based Software Engineering

Exercise 01 - Traveling Salesman Problem 2019-04-23

Deadline: 2019-05-06 23:59 2019-05-13 23:59 Submit to: andre.karge@uni-weimar.de

Submission details: compress your files (.zip or .tar.gz or .rar)

Include a text file with the names, matrikel numbers and degree program for each group member!

Name your compressed file: <lastname> <firstname> <matrikelnummer>-ex<exercise-number>(.tar.gz or .rar or .zip)

or for more than one student: please use this format for all group members example:norris chuck 123456-schwarzenegger arnold 121212-ex01.tar.gz

Groups: submit your solved assignment in groups of 2 Language: Python 3

Hints: The introduction and problem set of the TSP can be found at: link All exercises have to be applied to thecity100.txt problem set!

All algorithms can be found in the lecture slides.

Problem Description

The Traveling Salesman Problem (TSP) is given by the following question:

“Given is a list of cities and distances between each pair of cities - what is the shortest route that visits each city and returns to the original city?”1

The TSP is an NP-Hard-Problemwhich does not mean an instance of the problem will be hard to solve. It means, there does not exist an algorithm that produces the best solution in polynomial time.

We can not make predictions about how long it might take to find thebest solution.

But, we can find a good solution which might not be thebest solution. It is ok to find a route amongst 1000 cities that is only few miles longer than thebest route. Particularly, if it would take an inordinate amount amount of computing time to get from ourgood solution to thebest solution.

Use thecity100.txtfile to implement different Single-State Meta-Heuristics. You can also use the functions which were given in the lab class.

1source:https://en.wikipedia.org/wiki/Travelling_salesman_problem

1

(2)

Task 1. (5 points)

Implement Steepest Ascent Hill Climbing on the TSP.

Task 2. (5 points)

Implement Steepest Ascent Hill Climbing with replacement on the TSP.

Task 3. (5 points)

Implement Simulated Annealing on the TSP.

Task 4. (5 points)

Implement Tabu Search on the TSP.

Task 5. (5 points)

Implement Iterated Local Search (ILS) on the TSP.

2

Referenzen

ÄHNLICHE DOKUMENTE

how to install Python3 with Anaconda on Windows: click how to install Python3 with Anaconda on Ubuntu: click Packet Manager:. sudo apt install python3 python3-pip

Conclusion Using beam search on a state graph with large beam widths and guidance by the independent lower bound is a viable option to construct good solutions for the

model for parking that both works for the city (cutting down parking fraud, gathering more data, cutting carbon emissions) and citizens (making it easier to pay

“iwondo” is the first smart online platform in Austria enabling people looking for new space to rent, search the internet for available postings, investing a great deal of time

Although every project had its own specifics, the twinning projects between cities in Western Europe and the US and Germany and Eastern Europe, and later cities in Latin America

Attempts to generate a new framework or new umbrella term (e.g., NPR, 2015; EdWeek, 2015) while well-intentioned, are not designed to address what we see as the

Those who wish to extend the boundaries of political action, or to win protections and the possibility of a new political community for themselves and others, should focus a

[r]