But,It's not homework,it's just a problem that I found in a C studing book,and it doesn't provide the key.That's why I come to ask...hopes you can help me,if you know the answer.
Main Topics
Browse All Topicsa Data Structure Problem in C.
A Salesman is going to visit some cities (points A,B,C...)to sell his products, the distance between each city is known. How can he set off from the point A,visit all the cities (only once per city) and finally back to point A, In the shortest way?
Please Programming it in C. maybe with "Graph" or "Net" Data Structure.
Thank You.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
try here:
http://www.cs.sunysb.edu/~
or here for source
http://www.cs.sunysb.edu/~
however a more general search on google.com will show many many more
start at a given node. always choose the cheapest place you have not yet been to. If you get stuck, quit. Do this by starting at each node. The smallest / cheapest whatever path you find that completes is a solution. It is a good solution but not always the optimal one. Also you may never get a solution for some graphs. But its a start. Or do the brute force thing if you want the true solution, but its very slow! there are a lot of sites on this one, its a classic problem.
Nothing has happened on this question in over 10 months. It's time for cleanup!
My recommendation, which I will post in the Cleanup topic area, is to
accept answer by anovickis.
Please post any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
jmcg
EE Cleanup Volunteer
Business Accounts
Answer for Membership
by: sdyxPosted on 2003-01-21 at 04:03:44ID: 7769269
>Please Programming it in C.
I don't think so:
It is against EE Policy to do homework!!!