Evaluating Logic Programming in PROLOG for solving Hitori puzzles

A comparison of competing modeling-and-solving paradigms

Bachelor Thesis (2026)
Author(s)

T.D. Friederich (TU Delft - Electrical Engineering, Mathematics and Computer Science)

Contributor(s)

A.L.D. Latour – Mentor (TU Delft - Electrical Engineering, Mathematics and Computer Science)

T.J. Coopmans – Graduation committee member (TU Delft - QCD/Coopmans Group)

Faculty
Electrical Engineering, Mathematics and Computer Science
More Info
expand_more
Publication Year
2026
Language
English
Graduation Date
12-06-2026
Awarding Institution
Delft University of Technology
Project
CSE3000 Research Project
Programme
Computer Science and Engineering
Faculty
Electrical Engineering, Mathematics and Computer Science
Downloads counter
16
Reuse Rights

Other than for strictly personal use, it is not permitted to download, forward or distribute the text or part of it, without the consent of the author(s) and/or copyright holder(s), unless the work is under an open content license such as Creative Commons.

Abstract

We evaluate the performance of Logic Programming in PROLOG for solving Hitori puzzles. We analyze the runtime of our model as puzzle size increases, and compare performance to models from
competing modeling-and-solving paradigms. We discuss our model approach, and show that incorporating redundant constraints into our model can reduce average runtime. We discuss PROLOG’s backtracking depth first search and compare it with
techniques used by SAT solvers and CLASP, and briefly discuss options to incorporate some of these search techniques in PROLOG to potentially improve its performance in problems with large search spaces. In the comparison with other paradigms,
Answer Set Programming and Constraint Programming greatly outperformed PROLOG.