Assignment 4: TSP Solver with Greedy and Branch-and-Bound Algorithms
VerifiedAdded on  2019/09/22
|5
|1118
|187
Project
AI Summary
This project involves the design and implementation of a program to solve the Travelling Salesman Problem (TSP) using two distinct algorithmic approaches: a greedy algorithm based on the nearest neighbour strategy and a branch-and-bound algorithm. The program reads a symmetric matrix from a text file representing weighted edges of an undirected, complete graph, along with a list of city names corresponding to the vertices. The greedy algorithm aims to find approximate solutions, while the branch-and-bound algorithm seeks optimal solutions. The program displays the tour and related information, including the total cost. The branch-and-bound algorithm utilizes upper and lower bounds, incorporating breadth-first and depth-first search strategies. The assignment requires the use of appropriate data structures, thorough analysis of the results from both algorithms, and a detailed report describing the algorithms, data structures, code structure, and a comparative analysis of the results. The program is designed to work with input files representing Australian cities and includes requirements for code readability, comments, and the use of bash scripts for compilation and execution.
Contribute Materials
Your contribution can guide someone’s learning journey. Share your
documents today.
1 out of 5