in Algorithms
1,652 views
1 vote
1 vote

$\begin{bmatrix} 0& 29& 19& 25& 22\\ 20& 0& 21& 23& 21\\ 19& 21& 0& 21& 20\\ 25& 23& 21& 0& 32\\ 22& 21& 20& 22& 0 \end{bmatrix}$

Find the shortest tour for given graph using greedy approach.

\\It is Weighted Adjacency Matrix

\\It is directed graph as forward /backward distances are not same.

But how to solve using Greedy Approach using TravelSalesman Problem(TSP) ?

in Algorithms
1.7k views

4 Comments

@lavtherawkstar,technique used is Greedy,so why are u taking edges with maximum weights..take edges with min weights. after visiting each node,get back to origin
1
1
mam weight is not given
distance is given from one city to another
0
0

we will consider all the travelling distances and then using NN or SE approach try to solve the TSP using greedy method

0
0

1 Answer

3 votes
3 votes
Best answer

First of all go through the definition of tour 

http://www.algorithmist.com/index.php/Graph_Theory_-_basic_definitions

selected by

2 Comments

so,we dun need to get back to origin??
0
0
Yes no need. From start to end each node must be visited only once.
0
0

Related questions