Abstract
Conjunctive normal forms (CNF) of structured satisfiability problems contain logic gate patterns. So Boolean circuits (BC) by and large can be obtained from them and thus structural information that is lost in the CNF can be recovered. However, it is not known which logic gates are useful for local search on BCs or which logic gates in particular help local search the most and why. In this article, we empirically show that exploitation of xor, xnor, eq, and not gates is a key factor behind the performance of local search algorithms using single variable flips when adapted to logic gate constraints. Moreover, controlled experiments and investigations into the variables selected for flipping further elucidates these findings. To achieve these conclusions, we have adapted the AdaptNovelty+ and CCANr algorithms to cope with logic gate-based constraint models. These are two prominent families of local search algorithms for satisfiability. We performed our experiments using a large set of benchmark instances from SATLib, SAT2014, and SAT2020. We have also presented techniques to eliminate cycles among logic gates that are detected from CNF and to propagate equivalence of variables statically through the logic gate dependency relationships.
Similar content being viewed by others
References
Balint A, Fröhlich A (2010) Improving stochastic local search for sat with a new probability distribution. In: International conference on theory and applications of satisfiability testing. Springer, pp 10–15
Balyo T, Fröhlich A, Heule MJ, Biere A (2014) Everything you always wanted to know about blocked sets (but were afraid to ask). In: International conference on theory and applications of satisfiability testing. Springer, pp 317–332
Balyo T, Froleyks N, Heule MJ, Iser M, Järvisalo M, Suda M (eds) (2020) Proceedings of SAT competition 2020: solver and benchmark descriptions. University of Helsinki, Department of Computer Science, Helsinki
Battiti R, Tecchiolli G (1994) The reactive tabu search. ORSA J Comput 6(2):126–140
Belov A, Stachniak Z (2009) Improving variable selection process in stochastic local search for propositional satisfiability. SAT 9:258–264
Belov A, Stachniak Z (2010) Improved local search for circuit satisfiability. SAT 6175:293–299
Belov A, Järvisalo M, Stachniak Z (2011) Depth-driven circuit-level stochastic local search for SAT. In: IJCAI, pp 504–509
Biere A (2016) Splatz, lingeling, plingeling, treengeling, yalsat entering the sat competition 2016. In: Proceedings of of SAT competition, pp 44–45
Biere A, Fazekas K, Fleury M, Heisinger M (2020) CaDiCaL, Kissat, Paracooba, Plingeling and Treengeling entering the SAT Competition 2020. In: Balyo T, Froleyks N, Heule M, Iser M, Järvisalo M, Suda M (eds) Proceedings of SAT competition 2020—solver and benchmark descriptions. University of Helsinki, Department of Computer Science Report Series B, vol B-2020-1, pp 51–53
Cai S, Luo C, Su K (2015) CCAnr: a configuration checking based local search solver for non-random satisfiability. In: Heule M, Weaver S (Eds) Proceedings of SAT, LNCS, vol 9340, pp 1–8
Cook SA (1971) The complexity of theorem-proving procedures. In: Proceedings of the third annual ACM symposium on theory of computing. ACM, pp 151–158
Davis M, Logemann G, Loveland D (1962) A machine program for theorem-proving. Commun ACM 5(7):394–397. https://doi.org/10.1145/368273.368557
Fu Z, Malik S (2007) Extracting logic circuit structure from conjunctive normal form descriptions. In: 20th international conference on VLSI design, 2007. Held jointly with 6th international conference on embedded systems. IEEE, pp 37–42
Fu H, Wu G, Liu J, Xu Y (2020) More efficient stochastic local search for satisfiability. Appl Intell 51:1–20
Fu H, Xu Y, Wu G, Liu J, Chen S, He X (2021) Emphasis on the flipping variable: towards effective local search for hard random satisfiability. Inf Sci 566:118–139
Heule MJ, Järvisalo MJ, Suda M et al (eds) (2018) Proceedings of sat competition 2018: solver and benchmark descriptions. University of Helsinki, Department of Computer Science, Helsinki
Hoos HH (2002) An adaptive noise mechanism for walksat. In: AAAI/IAAI, pp 655–660
Hoos HH, Stützle T (2000) Local search algorithms for SAT: an empirical evaluation. J Autom Reason 24(4):421–481
Hoos HH, Tompkins DA (2007) Adaptive novelty+. SAT competition
Hoos HH et al (2002) An adaptive noise mechanism for WalkSAT. In: AAAI/IAAI, pp 655–660
Iser M, Manthey N, Sinz C (2015) Recognition of nested gates in CNF formulas. In: International conference on theory and applications of satisfiability testing. Springer, pp 255–271
Järvisalo M, Niemelä I (2008) The effect of structural branching on the efficiency of clause learning sat solving: an experimental study. J Algorithms 63(1–3):90–113
Järvisalo M, Junttila T (2009) Limitations of restricted branching in clause learning. Constraints 14(3):325–356
Järvisalo M, Junttila TA, Niemelä I (2008a) Justification-based local search with adaptive noise strategies. In: LPAR. Springer, pp 31–46
Järvisalo M, Junttila TA, Niemelä I (2008b) Justification-based non-clausal local search for SAT. In: ECAI, pp 535–539
Järvisalo M, Biere A, Heule MJ (2012) Simulating circuit-level simplifications on CNF. J Autom Reason 49(4):583–619
Jeroslow RG, Wang J (1990) Solving propositional satisfiability problems. Ann Math Artif Intell 1(1):167–187. https://doi.org/10.1007/BF01531077
Kuehlmann A, Paruthi V, Krohm F, Ganai MK (2002) Robust Boolean reasoning for equivalence checking and functional property verification. IEEE Trans Comput Aided Des Integr Circuits Syst 21(12):1377–1394
Luo C, Hoos H, Cai S (2020) Pbo-ccsat: boosting local search for satisfiability using programming by optimisation. In: International conference on parallel problem solving from nature. Springer, pp 373–389
Manthey N (2012) Coprocessor 2.0-a flexible CNF simplifier-(tool presentation). SAT 7317:436–441
Manthey N, Stephan A, Werner E (2016) Riss 6 solver and derivatives. In: Proceedings of SAT competition, pp 56–57
Mazure B, Sais L, Grégoire É (1997) Tabu search for SAT. In: AAAI/IAAI, pp 281–285
McAllester D, Selman B, Kautz H (1997) Evidence for invariants in local search. In: AAAI/IAAI. Rhode Island, USA, pp 321–326
Newton M, Pham D, Sattar A, Maher M (2011) Kangaroo: An efficient constraint-based local search system using lazy propagation. In: CP LNCS, vol 6876. Springer, Heidelberg, pp 645–659
Ostrowski R, Grégoire É, Mazure B, Sais L (2002) Recovering and exploiting structural knowledge from CNF formulas. In: International conference on principles and practice of constraint programming. Springer, pp 185–199
Patterson DJ, Kautz H (2001) Auto-WalkSAT: a self-tuning implementation of WalkSAT. Electron Notes Discrete Math 9:360–368
Peng C, Xu Z, Mei M (2020) Applying aspiration in local search for satisfiability. PloS one 15(4):e0231702
Pham DN, Thornton J, Sattar A (2007) Building structure into local search for SAT. IJCAI 7:2359–2364
Plaisted DA, Greenbaum S (1986) A structure-preserving clause form translation. J Symb Comput 2(3):293–304
Polash MA, Newton MH, Sattar A (2017) Constraint-based search for optimal Golomb rulers. J Heuristics 23(6):501–532
Prestwich S (2002) Supersymmetric modeling for local search. In: Second international workshop on symmetry in constraint satisfaction problems, Citeseer
Prestwich S, Roli A (2005) Symmetry breaking and local search spaces. In: International conference on integration of artificial intelligence (AI) and operations research (OR) techniques in constraint programming. Springer, pp 273–287
Roy JA, Markov IL, Bertacco V (2004) Restoring circuit structure from SAT instances. Ann Arbor 1001:48109–2122
Ryvchin V, Nadel A (2018) Maple lcm dist chronobt: featuring chronological backtracking. In: Proceedings of SAT competition 2018
Ryvchin V, Strichman O (2008) Local restarts in sat. Constraint Program Lett (CPL) 4:3–13
Seltner H (2014) Extracting hardware circuits from CNF formulas. Master’s thesis, Institute for Formal Models and Verification
Soos M, Devriendt J, Gocht S, Shaw A, Meel KS (2020) Cryptominisat with ccanr at the sat competition 2020. In: SAT COMPETITION 2020, p 27
Tseitin GS (1983) On the complexity of derivation in propositional calculus. In: Automation of reasoning. Springer, pp 466–483
Acknowledgements
This research is partially supported by the Australian Research Council under the Grant Number DP150101618.
Author information
Authors and Affiliations
Corresponding author
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
About this article
Cite this article
Newton, M.A.H., Polash, M.M.A., Pham, D.N. et al. Evaluating logic gate constraints in local search for structured satisfiability problems. Artif Intell Rev 54, 5347–5411 (2021). https://doi.org/10.1007/s10462-021-10024-0
Published:
Issue Date:
DOI: https://doi.org/10.1007/s10462-021-10024-0