{"title":"Comparison of Floyd-Warshall Algorithm and Greedy Algorithm in Determining the Shortest Route","authors":"Huzain Azis, Rizaldi dg. Mallongi, Dirgahayu Lantara, Yulita Salim","doi":"10.1109/EIConCIT.2018.8878582","DOIUrl":null,"url":null,"abstract":"Prior to traveling, one of the most important things to pay attention to is to determine the travel route, especially the shortest path to be taken. In this study, the method used to determine the shortest route is the conventional method and the Heuristic method. These two methods will be compared to find out methods which can provide the best result. For conventional methods, the authors use the Floyd- Warshall algorithm whereas for the Heuristic method, the greedy algorithm is employed. The Floyd-Warshall algorithm takes into account all possible routes so that there are some routes are displayed while the greedy algorithm checks every node that is passed to select the shortest route (Local Optimum) so that the time needed in searching is faster. Based on the conducted testing, the final result obtained is the Floyd- Warshall algorithm provides a better solution, namely the mileage was 22.7 km and the greedy algorithm covered a mileage of 24.8 km. This result indicated that a longer time is required because it takes the distance to all points into account.","PeriodicalId":424909,"journal":{"name":"2018 2nd East Indonesia Conference on Computer and Information Technology (EIConCIT)","volume":"51 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2018-11-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"10","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2018 2nd East Indonesia Conference on Computer and Information Technology (EIConCIT)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/EIConCIT.2018.8878582","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 10
Abstract
Prior to traveling, one of the most important things to pay attention to is to determine the travel route, especially the shortest path to be taken. In this study, the method used to determine the shortest route is the conventional method and the Heuristic method. These two methods will be compared to find out methods which can provide the best result. For conventional methods, the authors use the Floyd- Warshall algorithm whereas for the Heuristic method, the greedy algorithm is employed. The Floyd-Warshall algorithm takes into account all possible routes so that there are some routes are displayed while the greedy algorithm checks every node that is passed to select the shortest route (Local Optimum) so that the time needed in searching is faster. Based on the conducted testing, the final result obtained is the Floyd- Warshall algorithm provides a better solution, namely the mileage was 22.7 km and the greedy algorithm covered a mileage of 24.8 km. This result indicated that a longer time is required because it takes the distance to all points into account.