Home Work 10
This Home work is Backtracking and Local Heuristics. This
Home work is Due on Monday Decemebr 5th 2011.
Implement nearest neighbor local serach algorithm for finding a Traveling salesman problem.
At each step, from a vertex/city chose the closest/nearest unvisited vertex.
Once you visit a vertex mark it visit. When you visit the last vertex/city,
please complete the route by visiting the starting vertex.
The cost of the route is the sum of the cost of all edges.
- Repeat this with every starting vertex.
- Test with the following two test test data.
48 city
and Dantsig's 42 city
Submission Guidelines
Submit a copy of your programs to WebCT and a readme file
(containing
- a short instruction on how to compile and use your program,and
comment your code nicely).
- sample outputput.(the costs and the rout routes for the two examples)
Again it is for TA's grading efficiency.