Article ID: | iaor20112934 |
Volume: | 217 |
Issue: | 13 |
Start Page Number: | 6401 |
End Page Number: | 6408 |
Publication Date: | Mar 2011 |
Journal: | Applied Mathematics and Computation |
Authors: | Lu Xin, Camitz Martin |
Keywords: | networks: flow |
By repeatedly combining the source node’s nearest neighbor, we propose a node combination (NC) method to implement the Dijkstra’s algorithm. The NC algorithm finds the shortest paths with three simple iterative steps: find the nearest neighbor of the source node, combine that node with the source node, and modify the weights on edges that connect to the nearest neighbor. The NC algorithm is more comprehensible and convenient for programming as there is no need to maintain a set with the nodes’ distances. Experimental evaluations on various networks reveal that the NC algorithm is as efficient as Dijkstra’s algorithm. As the whole process of the NC algorithm can be implemented with vectors, we also show how to find the shortest paths on a weight matrix.