An Efficient and Uniform CSP Solution Generator Generator
Ghiles Ziat, Martin P\'epin
Key points
From the paper's conclusion- We present a prototype built upon the AbSolute constraint solving library and demonstrate its performances on several realistic examples.
Abstract
Constraint-based random testing is a powerful technique which aims at generating random test cases to verify functional properties of a program. Its objective is to determine whether a function satisfies a given property for every possible input. This approach requires firstly defining the property to satisfy, then secondly to provide a generator of inputs able to feed the program with the inputs generated. Besides, function inputs often need to satisfy certain constraints to ensure the function operates correctly, which makes the crafting of such a generator a hard task. In this paper, we are interested in the problem of manufacturing a uniform and efficient generator for the solutions of a CSP. In order to do that, we propose a specialized solving method that produces a well-suited representation for random sampling. Our solving method employs a dedicated propagation scheme based on the hypergraph representation of a CSP, and a custom split heuristic called birdge-first that emphasizes the interests of our propagation scheme. The generators we build are general enough to handle a wide range of use-cases. They are moreover uniform by construction, iterative and self-improving. We present a prototype built upon the AbSolute constraint solving library and demonstrate its performances on several realistic examples.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- SAT Sampling at Scale via GPU-based Boolean Constraint PropagationarXiv · 2026
- Learning Size Independent Constraint Models from Input Data and Positive and Negative Example SolutionsarXiv · 2026
- Random Testing via Runtime Abstract InterpretationProceedings of the ACM on Programming Languages · 2026
- SAT-sampling for statistical significance testing in sparse contingency tablesStatistics and Computing · 2026
- The Fragile Coupon Collector: Random Deadlines, Critical Fragility, and Optimal SamplingMathematics · 2026
- SailSearch: Agent-Assisted Discovery in Combinatorial OptimizationarXiv · 2026