International Journal of Computer Applications |
Foundation of Computer Science (FCS), NY, USA |
Volume 128 - Number 17 |
Year of Publication: 2015 |
Authors: Asad Mohammad, Vikram Garg |
10.5120/ijca2015906305 |
Asad Mohammad, Vikram Garg . Comparative Analysis of Floyd Warshall and Dijkstras Algorithm using Opencl. International Journal of Computer Applications. 128, 17 ( October 2015), 4-6. DOI=10.5120/ijca2015906305
Shortest path algorithms finds applications in large real world domains. All pair shortest path (APSP) and single source shortest path (SSSP) both have their special applications domains. All though every SSSP can be applied for all vertices to calculate APSP. But APSP cant. In this paper heterogeneous implementation of Floyd warshalls algorithm and Dijkstra’s algorithm is compared on dense graphs have positive edge weights ranging from 1 to 10. It is found that Dijkstra’s algorithm is better than Floyd warshall algorithm in sequencial implementation. But as there is less parallelism identified in dijkstra algorithm as compared to parallel to parallel FW gives less execution time as compared to Dijkstra’s.