find shortest path between source node and destination node?
Ältere Kommentare anzeigen
hi , i have 5 nodes first one i want to be start and last one which 5 i want to be last node and i want find shortest path between fisrt and last nodes how i can i do this plz somebody help me
Antworten (2)
Ken Atwell
am 19 Mai 2015
0 Stimmen
Sounds like you're after a so-called breadth-first search (that search "wide" before "deep"). Google search "matlab breadth first search" and you will find several promising leads.
2 Kommentare
Walter Roberson
am 19 Mai 2015
When I read the question, I do not see that the search order is given, just that the shortest path is to be found.
Ken Atwell
am 20 Mai 2015
Delving into a graph in breadth first order will get you the shortest plan from the original point to another.
Walter Roberson
am 19 Mai 2015
0 Stimmen
Methods using image processing: http://blogs.mathworks.com/steve/2011/11/01/exploring-shortest-paths-part-1/
Kategorien
Mehr zu Dijkstra algorithm finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!