PENERAPAN MODIFIKASI ALGORITMA WARNSDORFF DALAM IDENTIFIKASI LINTASAN DAN SIRKUIT HAMILTON PADA GRAF SEDERHANA

Fadilatul Amalia, Nilamsari Kusumastuti, Yudhi Yudhi

Abstract


Graph Hamilton is one of the concepts in graph theory related to a path that visits each vertex exactly once before returning to the starting vertex in the case of a Hamiltonian circuit. This research focuses on determining whether a graph has a Hamiltonian path or circuit using the Warnsdorff algorithm. The Warnsdorff algorithm was originally developed to solve the Knight’s Tour problem on a chessboard by selecting the vertex with the smallest degree to reduce the likelihood of getting stuck without any further moves. However, this algorithm has a weakness as it does not always succeed in finding a Hamiltonian path in various types of graphs. Therefore, this study modifies the Warnsdorff algorithm by implementing a strategy of selecting the starting vertex based on the smallest degree and applying a re-search mechanism if a Hamiltonian path is not found. If the path is still not found, the starting vertex is replaced with the next smallest-degree vertex until a path is found or all possibilities have been tested. This modification is expected to increase the algorithm’s chances of finding a Hamiltonian path compared to the unmodified Warnsdorff algorithm. The research methodology includes applying the modified Warnsdorff algorithm to various simple graphs and analyzing its performance in finding Hamiltonian paths. The results show that the modified Warnsdorff algorithm can identify Hamiltonian paths in certain graph structures. This modification not only improves the success rate of finding Hamiltonian paths but also reduces the number of steps in some cases, with potential applications in route optimization and network design. The conclusion of this study confirms that although modifying the Warnsdorff algorithm improves its success in finding Hamiltonian paths, further development is still necessary to make it more reliable in handling graphs with more complex structures.

Keywords


Algorithm Modification, Heuristic, Path Identification, Smallest Degree

Full Text:

PDF

References


Fauziyah, W. N., Permanasari, Y., Matematika, R.P. (2020). Aturan Warnsdorff dan Algoritma Backtracking pada Permainan The Knight’s Tour. SPeSIA. Vol. 6(1), 9–14.

Ihsan, A., Arif Adlie, T., & Harliansyah, S. (2024). Optimalisasi Pencarian Jalur Terpendek Mobile Robot dengan Menggunakan Metode Ant Colony Optimization (ACO). Jurnal Ilmiah Elektroteknika. Vol. 23(1), 39–54.

Jin, D., Li, Q., & Lu, M. (2022). Heuristic Approaches for Hamiltonian Path and Cycle Problems in Large-Scale Graphs. Wireles Networks. Vol. 28(1), 979–989.

Joni, & Erwin. (2017). Analisis Teori Graf Pada Persoalan Knight’s Tour Dengan J2ME. TIMES. Vol. 6(2), 52–57.

Mahmudah, M., & Irawati, T. N. (2018). Aplikasi Pewarnaan Graf Terhadap Pembuatan Jadwal Ujian Semester di Jurusan Pendidikan Matematika Universitas Islam Jember. Kadikma. Vol. 9(2), 12–21.

Olsen, E., & Babicheva, T. (2024). On the convergence of the Warnsdorff’s algorithm on the rectangular boards. Procedia Computer Science . Vol. 242 (1), 722–728. DOI:10.1016/j.procs.2024.08.153

Pegg, E. (2009). The Icosian Game, Revisited. The Mathematica Journal. Vol. 11(3), 310–314.

Pohl, I. (1967). A Method for Finding Hamilton Paths and Knight’s Tour. Communications of the ACM. Vol. 10(7), 446–449.

Pranav, M., Nithin, S., & Guruprasad, N. (2019). A Comparison of Warnsdorff’s Rule and Backtracking for Knight’s Tour on Square Boards. Lecture Notes in Electrical Engineering. Vol. 545(1), 171–185.

Rozi, S., & Multahadah, C. (2021). Rute Terpendek untuk Pengangkutan Sampah dengan Pendekatan Lintasan Hamilton. E-Jurnal Matematika. Vol. 10(2), 115.

https://doi.org/10.24843/mtk.2021.v10.i02.p330

Serdano, A., Zarlis, M., & Hartama, D. (2019). Implementasi Algoritma Backtracking pada Knight’s Tour Problem. SeNTIK. Vol. 3(1), 179–184.

Wibawa, C. (2022). Optimasi Rute Wisata di Yogyakarta Menggunakan Metode Travelling Salesman Person dan Algoritma Brute Force. Jurnal Teknik Dan Science. Vol. 1(3), 59–65.

Wijaya, E. (2016). Penerapan Sirkuit Hamilton untuk Menentukan Rute Terpendek Perjalanan Salesman PT Health Wealth Internasional (HWI). Jurnal TIMES. Vol. 5(1), 17–19.

Yuniar, N., & Panjaitan, D. J. (2024). Implementasi Nearest Neighbor Methods dan Closed Insertion Methods pada Penentuan Rute Bus Trans Metro Deli Menuju Pusat Kota Medan. Jurnal Lebesgue : Jurnal Ilmiah Pendidikan Matematika, Matematika Dan Statistika. Vol. 5(3), 1958–1978.

https://doi.org/10.46306/lb.v5i3.789

Zahro, F. (2018). Indeks Harary Graf Hamilton, Semi-Hamilton dan Hamilton-Kuat. MATHunesa. Vol. 6(2), 16–20.




DOI: https://doi.org/10.20527/epsilon.v19i1.14263

Refbacks

  • There are currently no refbacks.


Copyright (c) 2025 EPSILON: JURNAL MATEMATIKA MURNI DAN TERAPAN (EPSILON: JOURNAL OF PURE AND APPLIED MATHEMATICS)

Indexed by: 

      

 

EDITORIAL OFFICE 

           

 

 

 

Creative Commons License
All articles published in "Epsilon: Jurnal Matematika Murni dan Terapan" are licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (CC BY-NC-SA 4.0). Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.