Floyd-Warshall算法与贪心算法在最短路径确定中的比较

Huzain Azis, Rizaldi dg. Mallongi, Dirgahayu Lantara, Yulita Salim
{"title":"Floyd-Warshall算法与贪心算法在最短路径确定中的比较","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":"{\"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}","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

摘要

在旅行之前,要注意的最重要的事情之一是确定旅行路线,特别是要走的最短路径。在本研究中,确定最短路线的方法是常规方法和启发式方法。将这两种方法进行比较,找出能够提供最佳结果的方法。对于传统方法,作者采用Floyd- Warshall算法,而对于启发式方法,作者采用贪心算法。Floyd-Warshall算法考虑了所有可能的路由,因此会显示一些路由,而贪心算法会检查经过的每个节点,选择最短的路由(局部最优),从而使搜索所需的时间更快。根据所进行的测试,最终得到的结果是Floyd- Warshall算法提供了更好的解决方案,即里程为22.7 km,贪婪算法覆盖的里程为24.8 km。这个结果表明,由于考虑到所有点的距离,需要更长的时间。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Comparison of Floyd-Warshall Algorithm and Greedy Algorithm in Determining the Shortest Route
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.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信