PERBANDINGAN KINERJA DAN KOMPLEKSITAS ALGORITMA FLOYD-WARSHALL DAN GREEDY PADA RUTE EVAKUASI BANJIR
DOI:
https://doi.org/10.36526/tr.v10i1.7599Keywords:
Flood evacuation, Floyd–Warshall, Greedy algorithm, Shortest pathAbstract
Widang Subdistrict in Tuban Regency is prone to flooding due to the overflow of the Bengawan Solo River, making the development of efficient evacuation routes critically important. This study compares the performance and time complexity of the Floyd–Warshall and Greedy algorithms in determining the shortest evacuation routes from twelve flood-prone locations to a single evacuation post. The road network is modeled as a weighted graph representing flood points, alternative routes, and the evacuation post. Floyd–Warshall employs dynamic programming with a time complexity of O(n³) to compute global shortest paths, while Greedy selects routes based on locally optimal decisions with a complexity of O (V + E). The results show that both algorithms produce identical routes and distances for nine locations. For the other three locations, Floyd–Warshall provides a more optimal solution with a maximum distance difference of 0.2 km. Complexity analysis reveals that Greedy is computationally more efficient for large-scale graphs, whereas Floyd–Warshall guarantees global optimality even though its processing time increases as the number of vertices grows. Therefore, Greedy is more suitable for emergency response scenarios, while Floyd–Warshall is better suited for pre-disaster evacuation planning.
References
Afandi, N., & Mayasari, Z. M. (2021). An Evacuation Route in Bengkulu City Based on Fuzzy Dijkstra Algorithm. Journal of Physics: Conference Series, 1863(1), 12007. https://iopscience.iop.org/article/10.1088/1742-6596/1863/1/012007/meta
Agusnur, A. (2025). Penggunaan Teori Graf dalam Optimasi Jaringan Transportasi Kota. Jurnal Matematika dan Aplikasi (JMA), 1(1), 33-39. https://ejournal.samudrailmu.com/index.php/jma/article/view/16
Azis, H., Lantara, D., & Salim, Y. (2018). Comparison of Floyd-Warshall Algorithm and Greedy Algorithm in Determining the Shortest Route. 2018 2nd East Indonesia Conference on Computer and Information Technology (EIConCIT), 294–298. https://doi.org/10.1109/EIConCIT.2018.8878582
Budhiana, J., Dewi, R., Janatri, S., & Fatmala, S. D. (2023). Membangun Kesiapsiagaan Masyarakat dalam Menghadapi Bencana Melalui Sosialisasi dan Edukasi Modal Sosial. Abdimas Galuh, 5(2), 1269–1276. https://doi.org/10.25157/ag.v5i2.10751
Darmadi, D., Diansyah, T. M., & Handoko, D. (2023). Penerapan Algoritma Floyd Warshall dengan Menggunakan Euclidean Distance dalam Menentukan Rute Terbaik. Jurnal Ilmu Komputer dan Sistem Informasi, 2(2), 195–205. https://doi.org/10.70340/jirsi.v2i2.68
Denisya, F., & Hertati, D. (2024). The Role of the Regional Disaster Management Agency in Flood Disaster Mitigation Efforts in Banyulegi Village, Dawarblandong District, Mojokerto Regency. Jurnal Aristo (Social, Politic, Humaniora), 12(1), 75–101. https://doi.org/10.24269/ars.v12i1.7313
Harahap, S. A., & Triase, T. (2024). Greedy Algorithm to Support the Decision of Choosing the Fastest Aid Distribution Route After Flooding. Sistemasi: Jurnal Sistem Informasi, 13(4), 1689–1704. https://doi.org/10.32520/stmsi.v13i4.4345
Ina Geoportal. (2025). Data Wilayah Indonesia. https://tanahair.indonesia.go.id/portal-web/webmap
Jofie, M. Z., Bahri, S., & Baqi, A. I. (2020). Aplikasi Algoritma Greedy untuk Pewarnaan Wilayah pada Peta Kota Padang Berbasis Teorema Empat Warna. Jurnal Matematika UNAND, 9(4), 294–301. https://doi.org/10.25077/jmu.9.4.294-301.2020
Kekal, H. P., Gata, W., Nurdiani, S., Rini, A. J. S., & Wita, D. S. (2021). Analisa Pencarian Rute Tercepat Menuju Tempat Wisata Pulau Kumala Kota Tenggarong Menggunakan Algoritma Greedy. Jurnal Ilmiah Ilmu Komputer Fakultas Ilmu Komputer Universitas Al Asyariah Mandar, 7(1), 9–15. https://doi.org/10.35329/jiik.v7i1.179
Mahardika, D., & Setianingsih, E. L. (2018). Manajemen Bencana oleh Badan Penanggulangan Bencana Daerah (BPBD) dalam Menanggulangi Banjir di Kota Semarang. Journal of Public Policy and Management Review, 7(2), 502–518. https://doi.org/10.14710/jppmr.v7i2.20242
Mishra, G., Mazumdar, S., & Pal, A. (2018). Improved Algorithms for the Evacuation Route Planning Problem. Journal of Combinatorial Optimization, 36(1), 280–306. https://doi.org/10.1007/S10878-016-0082-0
Munawwir, Z., Sari, L. D. K., Zairozie, A. Z., & Hadi, S. (2023). Penerapan Graf Berbobot dan Algoritma Dijkstra untuk Menentukan Rute Optimal dari Pusat Kota ke Beberapa Objek Wisata di Kabupaten Situbondo. Jurnal IKA PGSD (Ikatan Alumni PGSD) UNARS, 14(2), 212–222. https://doi.org/10.36841/pgsdunars.v14i2.3997
Mustakim, M., Wahyuni, T., & Rahman, F. I. (2026). Implementasi Algoritma Floyd-Warshall untuk Menentukan Jarak Terpendek dalam Sistem Pengantaran Pos di Kecamatan Mariso. Jurnal Intelek dan Cendikiawan Nusantara, 3(01), 153–165. https://jicnusantara.com/index.php/jicn/article/view/6677
Nurdiansyah, R., Mindarta, E. K., Larasati, A., Darmawan, V. E. B., Widowati, T. R., Haque, S. A., & Azzahra, P. D. (2025). Sosialisasi Program Sekolah Siaga Bencana guna Meningkatkan Kemampuan Kesiapsiagaan terhadap Bencana. Jurnal Pengabdian Masyarakat dan Aplikasi Teknologi, 4(1), 13–18. https://doi.org/10.31284/j.adipati.2025.v4i1.6863
Ramadhan, Z., Zarlis, M., Efendi, S., & Siahaan, A. P. U. (2018). Perbandingan Algoritma Prim dengan Algoritma Floyd-Warshall dalam Menentukan Rute Terpendek (Shortest Path Problem). Jurnal Riset Komputer (JURIKOM), 5(2), 136–139. https://doi.org/10.30865/jurikom.v5i2.625
Safetra, M. F. C., Desviona, N., Helmina, H., Rianti, A., & Prayogi, M. R. (2026). Penerapan Teori Graf dalam Kehidupan Sehari-hari. Algoritma: Jurnal Matematika, Ilmu Pengetahuan Alam, Kebumian dan Angkasa, 4(1), 52–68. https://doi.org/10.62383/algoritma.v4i1.923
Salsadina, N. A., & Rosyida, I. (2025). Aplikasi Pencarian Rute Optimal AntarObjek Wisata di Kabupaten Cilacap Berbasis Algoritma Floyd-Warshall. Imajiner: Jurnal Matematika dan Pendidikan Matematika, 7(4), 256–269. https://doi.org/10.26877/imajiner.v7i4.23457
Sembiring, F. G., Nst, S. P. S., Gaol, A. S. L., & Harliana, P. (2025). Implementasi Algoritma Greedy dalam Penentuan Jalur Strategis dari Simpang Pos ke Lapangan Merdeka Kota Medan. JATI (Jurnal Mahasiswa Teknik Informatika), 9(1), 423–428. https://doi.org/10.36040/jati.v9i1.12343
Tani, K., & Yamamoto, K. (2020). Search Methods for Evacuation Routes During Torrential Rain Disasters Using Genetic Algorithms and GIS. J Geogr Inf Syst, 12(03), 256–274. https://doi.org/10.4236/jgis.2020.123016
Wayahdi, M. R., Ginting, S. H. N., & Syahputra, D. (2021). Greedy, A-Star, and Dijkstra’s Algorithms in Finding Shortest Path. International Journal of Advances in Data and Information Systems, 2(1), 45–52. https://doi.org/10.25008/ijadis.v2i1.1206
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Ajril Abyad Alhaq, Nia Nurfitria

This work is licensed under a Creative Commons Attribution 4.0 International License.





