A Las Vegas algorithm for satisfiable SAT formulas, with an application to timetabling
Abstract
Many scheduling problems need many different feasible timetables, and a view of how much freedom each event has. We study a Las Vegas algorithm that samples satisfying assignments of a Boolean formula one variable at a time: it draws each value from an estimate of its conditional probability, propagates, and restarts on a contradiction. Every output is a checked solution and comes with the exact probability of producing it. We prove that a run succeeds with probability at least 2−K, where K is the expected Kullback--Leibler divergence between the true and estimated conditional probabilities along the run of a uniform solution. We also bound the distance of the outputs from uniform from the samples alone; it is a divergence in the opposite direction to K, so a sampler can succeed more often while being farther from uniform. On generated timetabling instances counted exactly, belief propagation on the timetabling problem brings K to at most about one bit, and the estimated counts are within 2% of the exact ones. On a real university instance of the International Timetabling Competition 2019, rerunning only the failed runs delivered all 72 requested timetables with each of two estimators. Belief propagation succeeds in 31% of runs. Steered by a Markov chain that carries a nearly feasible timetable, it succeeds in 65% of runs, with outputs at least 300 bits from uniform. There the importance weights are too uneven to estimate the number of timetables, and we certify a lower bound instead. For random 3-SAT, an estimator whose K grows logarithmically would give a polynomial-time Las Vegas algorithm beyond the densities at which any algorithm is proved to succeed; we conjecture that one exists below the satisfiability threshold.
Related
- A note on the intractability of enumerating the maximal satisfiable subformulas of a Horn expression
- A Two-Stage Optimization Framework for Real-World Large-Scale University Course Timetabling Based on Orthogonalized Hierarchical Modeling and Conflict-Driven ALNS Repair
- Proximal point algorithm for interval valued optimization problems with application to lasso problem
- An Efficient iLQR Algorithm for Optimal Control with Bounded States and Inputs: Application to Spacecraft Maneuvers
- A novel inertial viscosity Z-algorithm for common fixed point problems with an application to image deblurring
BibTeX
@misc{dias2026vegas,
title = {{A Las Vegas algorithm for satisfiable SAT formulas, with an application to timetabling}},
author = {Fabio Dias},
howpublished = {arXiv},
year = {2026},
month = nov,
doi = {10.48550/arxiv.2611.18720},
eprint = {2611.18720},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2611.18720},
note = {CC BY-NC-SA 4.0},
}
RIS
TY - UNPB
TI - A Las Vegas algorithm for satisfiable SAT formulas, with an application to timetabling
AU - Fabio Dias
PY - 2026
DA - 2026/11/08
PB - arXiv
DO - 10.48550/arxiv.2611.18720
UR - https://arxiv.org/abs/2611.18720
AB - Many scheduling problems need many different feasible timetables, and a view of how much freedom each event has. We study a Las Vegas algorithm that samples satisfying assignments of a Boolean formula one variable at a time: it draws each value from an estimate of its conditional probability, propagates, and restarts on a contradiction. Every output is a checked solution and comes with the exact probability of producing it. We prove that a run succeeds with probability at least 2^−K, where K is the expected Kullback--Leibler divergence between the true and estimated conditional probabilities along the run of a uniform solution. We also bound the distance of the outputs from uniform from the samples alone; it is a divergence in the opposite direction to K, so a sampler can succeed more often while being farther from uniform. On generated timetabling instances counted exactly, belief propagation on the timetabling problem brings K to at most about one bit, and the estimated counts are within 2% of the exact ones. On a real university instance of the International Timetabling Competition 2019, rerunning only the failed runs delivered all 72 requested timetables with each of two estimators. Belief propagation succeeds in 31% of runs. Steered by a Markov chain that carries a nearly feasible timetable, it succeeds in 65% of runs, with outputs at least 300 bits from uniform. There the importance weights are too uneven to estimate the number of timetables, and we certify a lower bound instead. For random 3-SAT, an estimator whose K grows logarithmically would give a polynomial-time Las Vegas algorithm beyond the densities at which any algorithm is proved to succeed; we conjecture that one exists below the satisfiability threshold.
ER -