d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Need Help On Algorithm
Add Reply New Topic New Poll
Member
Posts: 20,928
Joined: Mar 18 2009
Gold: 435,910.13
Apr 4 2013 02:31pm
i'm given an directed weighted graph like this one



i have to write a program that given a input of arbitrary points i.e 4, 1, 3, 6, find the shortest path that passes through each vertex only once
can anyone tell me a algorithm that can solve this? Doing this in java btw, will don8 if i can understand/use your answer totally stumped atm

This post was edited by bakalolo on Apr 4 2013 02:33pm
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Apr 4 2013 05:40pm
http://en.wikipedia.org/wiki/Bellman-Ford_algorithm

try that out. i dont remember if it only touches each one once or not

http://stackoverflow.com/questions/6733999/what-is-the-problem-name-for-traveling-salesman-problemtsp-without-considering

This post was edited by carteblanche on Apr 4 2013 05:46pm
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll