Min-Conflicts Against Single-Worker CP-SAT on Dense Blocked n-Queens Instances: A Small Replication Note
This replication study demonstrates that while exact CP-SAT solvers excel at proving unsatisfiability and solving small dense blocked n-Queens instances, the min-conflicts local search algorithm significantly outperforms single-worker CP-SAT in finding solutions for larger, satisfiable instances with high hole density, though neither approach succeeds near the solvability transition threshold.
Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the author. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine a chessboard where you must place a certain number of queens so that none of them can attack another. This is a classic puzzle known as the n-Queens problem. Now, imagine that some squares on this board are blocked off, perhaps by random obstacles, making it impossible to place a queen there. This variation, called Blocked n-Queens, turns a simple puzzle into a complex test of logic. The difficulty of solving these puzzles changes dramatically depending on how many squares are blocked. When very few squares are blocked, the puzzle is easy. When almost all squares are blocked, it is often impossible to solve. But there is a narrow, tricky zone in between where the puzzle is neither obviously easy nor obviously impossible, and this is where the real challenge lies. Computer scientists study these puzzles not just for the sake of the game, but because they reveal how different types of thinking machines handle complex problems. Some machines are like meticulous accountants who check every single possibility to prove a solution exists or does not. Others are like quick, intuitive guessers who make a move, see if it causes trouble, and immediately fix it if it does.
A recent study by Dikshant Bikram Thapa at Kathmandu University set out to see which of these two approaches works better when the board gets very large and the obstacles are dense. The researcher tested two main methods on hundreds of these blocked board puzzles. The first method used a powerful, standard computer solver designed to find exact answers by checking constraints systematically, much like a detective following a strict checklist. The second method used a technique called min-conflicts, which is a form of local search. This approach starts with a random arrangement of queens and repeatedly moves the ones that are causing the most trouble to a better spot, fixing errors as it goes. The study focused on boards ranging from 30 by 30 squares up to 400 by 400 squares, with varying numbers of blocked cells.
The results showed a clear split in performance depending on the size of the board and the density of the obstacles. For smaller boards, up to about 50 by 50 squares, the meticulous, systematic solver was the most reliable, often finding solutions or proving that none existed faster than the intuitive method. However, as the boards grew larger, specifically to 100 by 100 squares and beyond, the dynamic changed completely. On these large, dense boards where a solution was possible, the intuitive min-conflicts method became dramatically faster. In tests with 200 by 200 boards and a high number of blocked squares, the quick, intuitive method found solutions in less than half a second for every single puzzle it tried. In contrast, the systematic solver failed to find a solution in the allotted ten seconds for almost all of those same puzzles. The intuitive method solved twenty out of twenty instances, while the systematic solver managed to solve at most one.
This advantage, however, has a strict boundary. The quick, intuitive method only works when a solution actually exists. When the obstacles became so numerous that no solution was possible, the intuitive method would keep searching forever without success, eventually giving up after the time limit. The systematic solver, on the other hand, is capable of proving that no solution exists. In the study, the systematic solver successfully proved that hundreds of the smaller puzzles were impossible to solve, a task the intuitive method could never accomplish. The researchers also tested a hybrid approach that tried to combine the two methods, but it did not offer a clear improvement over using the best single method for each specific situation. Furthermore, the study found that the point where the puzzles become impossible to solve is a very narrow band where even the most powerful computers struggle to decide the answer within a few seconds.
The study concludes that for very large, dense puzzles that are solvable, a simple, quick-fix strategy is far superior to a complex, exhaustive search. This confirms a long-held observation in computer science that intuitive methods excel in the "easy" regions of complex problems, even when those regions are part of a larger, difficult system. The research did not discover a new way to solve the hardest puzzles at the very edge of difficulty, nor did it suggest that the quick method is better for proving impossibility. Instead, it provided a precise, documented map of where each tool works best. The findings suggest that for large-scale problems where a solution is likely, relying on a fast, adaptive approach is often the most practical choice, while the slower, more thorough method remains essential for verifying that a solution does not exist. The work serves as a clear reminder that in the world of complex problem-solving, the right tool depends entirely on the specific nature of the task at hand.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.