Ai SMPS 2025 Programming Assignment 1 TSP
Ai SMPS 2025 Programming Assignment 1 TSP
Problem Statement
Given a set of N cities and distance between every pair of
cities, find the shortest possible route that starts from a
city and visits every city exactly once and returns to the
starting city.
Input Specification
Output Specification
Your program must write the current best tour (in path rep-
resentation) to standard output, one tour per line.
Programming Language
Use Python 3.
TSP Validator
Use the TSP Validator (that will be provided to you) to test
your programs output. Submit your code only if it passes
validation on your machine.
Code Submission
You must upload a zip file “your-roll-number.zip” that must
contain a single folder named “your-roll-number”, hence-
forth referred to as HOME folder.
python3 relativePath/yourProgramName.py
Evaluation
Each program (process) will be allotted 300 seconds to
complete its task and thereafter it will be terminated.
Grading is relative, the best tour will get the highest points.
Trial Run
Final Run
You must submit your final code along with a report for
evaluation and grading.