Comparison of Dijkstra's Algorithm and Floyd-Warshall's Algorithm Determining the Shortest Route from Tegal Station to Hotel

Authors

  • Gunawan Program Studi Teknik Informatika STMIK YMI TEGAL
  • Wresti Andriani Program Studi Teknik Informatika STMIK YMI TEGAL

Keywords:

Dijkstra algorithm, Floyd Warshall algorithm, the shortest path

Abstract

Determining the shortest trajectory is a significant problem that is often found in the world of computers and information technology. The Dijkstra algorithm is one of the graph algorithms used to find the shortest path between two vertices in a positive-weighted graph. The Floyd-Warshall algorithm finds the quickest way between all pairs of vertices in a positively or negatively weighted graph. This study aims to discover the advantages and disadvantages of each algorithm in solving the same problem. Based on this research, the Dijkstra algorithm has a little complexity in source code compared to the application of the Floyd-Warshall algorithm, meaning that the Dijkstra algorithm has higher efficiency in determining the shortest route based on the input of the starting point and destination point. The data and graphs created can also be implemented well. Thus, the Dijkstra algorithm and the Floyd-Warshall algorithm can be used to solve the shortest route problem. However, it does not rule out the possibility of different results in other cases. Applying the Dijkstra algorithm is also easier to understand and use, especially in determining the shortest route to an object of study. The shortest path and the resulting distance information are also expected to help the community, especially tourists who want to stay in Tegal City more efficiently, in addition to optimizing the use of needs such as fuel and estimated time to travel.

Downloads

Download data is not yet available.

Published

2021-07-30

How to Cite

Comparison of Dijkstra’s Algorithm and Floyd-Warshall’s Algorithm Determining the Shortest Route from Tegal Station to Hotel. (2021). BATIRSI - Bahari Teknik Informatika Dan Sistem Informasi, 4(2), 1-8. https://e-journal.stmik-tegal.ac.id/index.php/batirsi/article/view/42