Q2: As we know, the heuristic or approximation algorithms may not give an optimum solution to the problem but they are polynomial efficient.
(a) Propose an approximation algorithm for travelling salesman problem (TSP) and discuss about its time complexity and limitation. (6 marks)
(b) Give two example inputs, in which the algorithm in (a) gives the best and not-thebest solutions, respectively. The number of nodes should be between six and eight. (4 marks)
Comments
Leave a comment