Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Traveling salesman problem in C

Reply
Thread Tools

Traveling salesman problem in C

 
 
whitehatmiracle@gmail.com
Guest
Posts: n/a
 
      09-10-2006
Hi there, i need some help for the traveling salesman prob in C
I have an array with distances to cities

A B C D E
A 0 5 7 1 9
B 5 0
C 7 0
D 1 0
E 9 0
etc.................................

With a brute force i get all combinations ABCDE ABDCE ABCED ...........
I guess i have to use 5 for loops. Not sure how to do that.
In a corresponding array i store the distances by claculating with the
help of the table look up.
SOS....HELP URGENT

THANKING YOU ALL IN ADVANCE

CLUESSSSS????????

 
Reply With Quote
 
 
 
 
Steve Pope
Guest
Posts: n/a
 
      09-10-2006
<> wrote:

>Hi there, i need some help for the traveling salesman prob in C


Try searching for "Simplex Algorithm".

Also, this is a C++ newsgroup, not a C newsgroup.

Steve
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Traveling salesman, idea, easy to program? JSH Java 61 08-21-2008 06:07 PM
Traveling salesman problem whitehatmiracle@gmail.com C++ 5 09-10-2006 11:45 PM
Traveling salesman problem in C whitehatmiracle@gmail.com C++ 0 09-10-2006 04:34 AM
Traveling Salesman Problem KantKwitDansin1 C++ 9 12-12-2004 09:53 PM
complexity of Traveling Salesman Problem? Vinay Adella C Programming 4 09-04-2003 02:54 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57