BibTex Citation Data :
@article{JFMA18155, author = {Joshua Sakti and Muhammad Arzaki and Gia Wulandari}, title = {A BACKTRACKING APPROACH FOR SOLVING PATH PUZZLES}, journal = {Journal of Fundamental Mathematics and Applications (JFMA)}, volume = {6}, number = {2}, year = {2023}, keywords = {asymptotic running time; backtracking; NP-complete; Path puzzles}, abstract = { We study algorithmic aspects of the Path puzzle--a logic puzzle created in 2013 and confirmed NP-complete (Non-deterministic Polynomial-time-complete) in 2020. We propose a polynomial time algorithm for verifying an arbitrary Path puzzle solution and a backtracking-based method for finding a solution to an arbitrary Path puzzle instance. To our knowledge, our study is the first rigorous investigation of an imperative algorithmic approach for solving Path puzzles. We prove that the asymptotic running time of our proposed method in solving an arbitrary Path puzzle instance of size \$m \times n\$ is \$O(3^\{mn\})\$. Despite this exponential upper bound, experimental results imply that a C++ implementation of our algorithm can quickly solve \$6 \times 6\$ Path puzzle instances in less than 30 milliseconds with an average of 3.02 milliseconds for 26 test cases. We finally prove that an \$m \times n\$ Path puzzle instance without row and column constraints is polynomially solvable in \$O(\max\\{m,n\\})\$ time. }, issn = {2621-6035}, pages = {117--135} doi = {10.14710/jfma.v6i2.18155}, url = {https://ejournal2.undip.ac.id/index.php/jfma/article/view/18155} }
Refworks Citation Data :
We study algorithmic aspects of the Path puzzle--a logic puzzle created in 2013 and confirmed NP-complete (Non-deterministic Polynomial-time-complete) in 2020. We propose a polynomial time algorithm for verifying an arbitrary Path puzzle solution and a backtracking-based method for finding a solution to an arbitrary Path puzzle instance.To our knowledge, our study is the first rigorous investigation of an imperative algorithmic approach for solving Path puzzles. We prove that the asymptotic running time of our proposed method in solving an arbitrary Path puzzle instance of size $m \times n$ is $O(3^{mn})$. Despite this exponential upper bound, experimental results imply that a C++ implementation of our algorithm can quickly solve $6 \times 6$ Path puzzle instances in less than 30 milliseconds with an average of 3.02 milliseconds for 26 test cases. We finally prove that an $m \times n$ Path puzzle instance without row and column constraints is polynomially solvable in $O(\max\{m,n\})$ time.
Article Metrics:
Last update:
Authors who publish articles in this journal agree to the following terms:
For more detailed information about the copyright transfer, please refer to this page: COPYRIGHT TRANSFER FORM