How can i find shortest path without graph theory?
-
i have to write a c++ algorithm to find the shortest path of a graph. but we are not allowed to use graph theory algorithms such as Dijkstra's algorithm, etc. We were thinking ...show more
-
Answer:
Use the unweighted breadth-first traversal algorithm. It basically assigns a weight to each edge, starting at any vertex. Then run the algorithm on the graph with a specify vertex and it will give you the shortest path to that vertex. The lowest weight is the shortest path. Here are some sources that will help you out: http://faculty.simpson.edu/lydia.sinapova/www/cmsc250/LN250_Weiss/L21-MinPath.htm http://www.ecs.umass.edu/~mettu/ece242/lectures/Unit%20Weight%20Shortest%20Paths%20and%20Spanning%20Trees.pdf (page 8-10)
BTJHGTPVD6M6MAOJDNGFAMY6ZM at Yahoo! Answers Visit the source
Related Q & A:
- Where can I find airplane spinners without the holes in them?Best solution by Yahoo! Answers
- How can I get a loan without a job?Best solution by Yahoo! Answers
- How can I promote my site without spending money?Best solution by Yahoo! Answers
- How can I stop being bulimic without professional help?Best solution by Yahoo! Answers
- How can I find my career path?Best solution by eHow old
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.