计算机技术与发展
計算機技術與髮展
계산궤기술여발전
COMPUTER TECHNOLOGY AND DEVELOPMENT
2013年
2期
105-107
,共3页
最短路%无回路网络%有效算法%双向弧
最短路%無迴路網絡%有效算法%雙嚮弧
최단로%무회로망락%유효산법%쌍향호
shortest path%directed acyclic graph (DAG)%effective algorithm%bi-directional arc
对于求解小规模无回路网络的最短路径这一问题,目前大多数算法都是基于Dijkstra算法或者穷举法的思想,不仅计算量大而且操作复杂.文中在深入分析已有算法的基础上,给出了一种新的简单易行的方法.该算法通过不断消去中间节点和弧以简化图的结构,既能快速地计算出源点到目的节点的最短路径,又能直观地找出最短路.最后算法通过具体实例分析表明,该算法不仅思想简便、易于操作,同时有效地降低了算法复杂度,是计算小规模无回路网络的一种行之有效的算法.
對于求解小規模無迴路網絡的最短路徑這一問題,目前大多數算法都是基于Dijkstra算法或者窮舉法的思想,不僅計算量大而且操作複雜.文中在深入分析已有算法的基礎上,給齣瞭一種新的簡單易行的方法.該算法通過不斷消去中間節點和弧以簡化圖的結構,既能快速地計算齣源點到目的節點的最短路徑,又能直觀地找齣最短路.最後算法通過具體實例分析錶明,該算法不僅思想簡便、易于操作,同時有效地降低瞭算法複雜度,是計算小規模無迴路網絡的一種行之有效的算法.
대우구해소규모무회로망락적최단로경저일문제,목전대다수산법도시기우Dijkstra산법혹자궁거법적사상,불부계산량대이차조작복잡.문중재심입분석이유산법적기출상,급출료일충신적간단역행적방법.해산법통과불단소거중간절점화호이간화도적결구,기능쾌속지계산출원점도목적절점적최단로경,우능직관지조출최단로.최후산법통과구체실례분석표명,해산법불부사상간편、역우조작,동시유효지강저료산법복잡도,시계산소규모무회로망락적일충행지유효적산법.
For solving the shortest path on DAG,most of algorithms are based on Dijkstra algorithm or brute-force method,it's not only computationally expensive and complicated to operate. Based on the existing shortest path algorithm,propose a new simple method. The algorithm continuously deletes intermediate nodes and arcs to simplify the structure,not only can quickly calculate the shortest path from the source node to the destination node,but also find shortest paths easily. Finally algorithm through the concrete example analysis shows that,this algorithm is easy to operate,and at the same time,effective to reduce the algorithm complexity. It is a feasible algorithm of cal-culating loop-free network.