Following the tradition, I have completed solutions in Picat for all the five problems used in the 2025 LP/CP Programming Contest.
All the solutions, except for Problem 5, use SAT. The solution for Problem 5 employs CP, which is much faster than SAT when repeatedly solving small and easy problems.
I couldn’t get the initial solution for Problem 3 to work on site because it didn’t remove duplicate edges in the hcp(Vs, Es) constraint. Perhaps Picat should issue a warning when Es contains duplicate edges.
The problems this year were significantly more challenging than last year’s. I needed about 10 hours to write the solution for Problem 2. I used ASP Chef to clarify the problem description and verify the solution; without it, completing the solution would have taken much longer."
Thanks to Marco Gavanelli's stellar performance (Marco used ECLiPSe-Prolog), our p(Picat/Prolog) team won the first place. Congratulations to the team, especially Marco.
Cheers,
Neng-Fa