find shortest path between source node and destination node?
조회 수: 2 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
답변 (2개)
Ken Atwell
2015년 5월 19일
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
Walter Roberson
2015년 5월 19일
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
2015년 5월 20일
Delving into a graph in breadth first order will get you the shortest plan from the original point to another.
Walter Roberson
2015년 5월 19일
Methods using image processing: http://blogs.mathworks.com/steve/2011/11/01/exploring-shortest-paths-part-1/
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Dijkstra algorithm에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!