To find the shortest all possible paths in a network what algorithm is used?

1 回表示 (過去 30 日間)
dharani m
dharani m 2015 年 12 月 16 日
コメント済み: Christine Tobler 2015 年 12 月 17 日
It must displays the all possible paths from a source node to destination node.Because i am using genetic algorithm for selecting the optimal path.
  1 件のコメント
Christine Tobler
Christine Tobler 2015 年 12 月 17 日
How do you define the optimal path? MATLAB's graph object currently only returns the shortest path between source and destination nodes, not all paths. This is mainly because the number of paths between two nodes can grow exponentially with the number of nodes in a graph.
Also, there are different ways of defining "all paths". For example: Would you count a path that passes through the same node twice? What about a path that passes through the same edge twice?

サインインしてコメントする。

回答 (1 件)

Image Analyst
Image Analyst 2015 年 12 月 17 日
Why bother finding all possible paths? Just find the best one - it's not required to find all of them before you find the best one. Anyway, my favorite is A* but there are a bunch of alternatives, some of which excel in certain situations, and are also listed on the page for A*: https://en.wikipedia.org/wiki/A*_search_algorithm

カテゴリ

Help Center および File ExchangeGraph and Network Algorithms についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by