Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to main content

Tackling the Polarity Initialization Problem in SAT Solving Using a Genetic Algorithm

  • Conference paper
  • First Online:
NASA Formal Methods (NFM 2024)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 14627))

Included in the following conference series:

  • 331 Accesses

Abstract

The Boolean satisfiability problem holds a significant place in computer science, finding applications across various domains. This problem consists of looking for a truth assignment to a given Boolean formula that either validates it or proves its impossibility.

An indispensable element influencing the efficacy of tools designed for tackling this challenge, known as sat solvers, is the choice of an appropriate initialization strategy. This strategy encompasses the assignment of initial values, or polarities, to the variables before starting the search process. A well-crafted initialization strategy has the capability to curtail the search space and minimize the number of conflicts and backtracks by ensuring that variables are assigned values that are likely to satisfy the formula from the outset.

This paper introduces an innovative initialization approach founded on genetic algorithms, which are evolutionary algorithms inspired by the principles of natural selection and reproduction. Our approach executes a genetic algorithm on the given formula, persisting until it discovers a satisfying assignment or meets predetermined termination criteria.

Subsequently, it furnishes the satisfying assignment in case of success; otherwise, it employs the best assignment (that satisfies the highest number of clauses) to initialize the variables’ polarities for the sat solver.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 109.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 79.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    Kissat is a cdcl sat solver originally developed by A. Biere [6] and subsequently improved over time by many others, giving rise to a family of Kissat-like solvers.

  2. 2.

    https://github.com/sabrinesaouli/GASPIGLUCOSE.

  3. 3.

    https://github.com/sabrinesaouli/GASPIKISSAT.

  4. 4.

    https://github.com/sabrinesaouli/GASPIMAPLE.

References

  1. Aiman, U., Asrar, N.: Genetic algorithm based solution to SAT-3 problem. J. Comput. Sci. Appl. 3(2), 33–39 (2015)

    Google Scholar 

  2. Audemard, G., Simon, L.: Predicting learnt clauses quality in modern SAT solvers. In: Proceedings of the 21st International Joint Conference on Artificial Intelligence, IJCAI 2009, pp. 399–404 (2009)

    Google Scholar 

  3. Balyo, T., Heule, M., Iser, M., Järvisalo, M., Suda, M.: Proceedings of SAT competition 2023: solver, benchmark and proof checker descriptions (2023)

    Google Scholar 

  4. Balyo, T., Heule, M.J., Iser, M., Järvisalo, M., Suda, M.: SAT competition 2022 (2022)

    Google Scholar 

  5. Bhattacharjee, A., Chauhan, P.: Solving the SAT problem using genetic algorithm. Adv. Sci. Technol. Eng. Syst 2(4), 115–120 (2017)

    Article  Google Scholar 

  6. Biere, A., Fazekas, K., Fleury, M., Heisinger, M.: 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. Department of Computer Science Report Series B, vol. B-2020-1, pp. 51–53. University of Helsinki (2020)

    Google Scholar 

  7. Boughaci, D., Drias, H., Benhamou, B., et al.: Combining a unit propagation with genetic algorithms to solve Max-SAT problems (2008)

    Google Scholar 

  8. Braunstein, A., Mézard, M., Zecchina, R.: Survey propagation: an algorithm for satisfiability. Random Struct. Algorithms 27(2), 201–226 (2005)

    Article  MathSciNet  Google Scholar 

  9. Cai, S., Luo, C., Su, K.: CCAnr: a configuration checking based local search solver for non-random satisfiability. In: Heule, M., Weaver, S. (eds.) SAT 2015. LNCS, vol. 9340, pp. 1–8. Springer, Cham (2015). https://doi.org/10.1007/978-3-319-24318-4_1

    Chapter  Google Scholar 

  10. Cai, S., Luo, C., Zhang, X., Zhang, J.: Improving local search for structured SAT formulas via unit propagation based construct and cut initialization (short paper). In: 27th International Conference on Principles and Practice of Constraint Programming (CP 2021) (2021)

    Google Scholar 

  11. Davis, M., Logemann, G., Loveland, D.: A machine program for theorem-proving. Commun. ACM 5(7), 394–397 (1962)

    Article  MathSciNet  Google Scholar 

  12. Duan, H., Nejati, S., Trimponias, G., Poupart, P., Ganesh, V.: Online Bayesian moment matching based SAT solver heuristics. In: International Conference on Machine Learning, pp. 2710–2719. PMLR (2020)

    Google Scholar 

  13. Eén, N., Sörensson, N.: An extensible SAT-solver. In: International Conference on Theory and Applications of Satisfiability Testing (2003)

    Google Scholar 

  14. Froleyks, N., Heule, M., Iser, M., Järvisalo, M., Suda, M.: SAT competition 2020. Artif. Intell. 301, 103572 (2021)

    Article  MathSciNet  Google Scholar 

  15. Fu, H., Xu, Y., Wu, G., Ning, X.: An improved genetic algorithm for solving 3-SAT problems based on effective restart and greedy strategy. In: 2017 12th International Conference on Intelligent Systems and Knowledge Engineering (ISKE), pp. 1–6. IEEE (2017)

    Google Scholar 

  16. Holland, J.H.: Adaptation in Natural and Artificial Systems: An Introductory Analysis with Applications to Biology, Control, and Artificial Intelligence. MIT Press, Cambridge (1992)

    Book  Google Scholar 

  17. Hutter, F., Hoos, H.H., Leyton-Brown, K.: Sequential model-based optimization for general algorithm configuration. In: Coello, C.A.C. (ed.) LION 2011. LNCS, vol. 6683, pp. 507–523. Springer, Heidelberg (2011). https://doi.org/10.1007/978-3-642-25566-3_40

    Chapter  Google Scholar 

  18. Jebari, K., Madiafi, M., et al.: Selection methods for genetic algorithms. Int. J. Emerg. Sci. 3(4), 333–344 (2013)

    Google Scholar 

  19. Jeroslow, R.G., Wang, J.: Solving propositional satisfiability problems. Ann. Math. Artif. Intell. 1(1–4), 167–187 (1990)

    Article  Google Scholar 

  20. Katoch, S., Chauhan, S.S., Kumar, V.: A review on genetic algorithm: past, present, and future. Multimed. Tools Appl. 80, 8091–8126 (2021)

    Article  Google Scholar 

  21. Liang, J.H., Oh, C., Ganesh, V., Czarnecki, K., Poupart, P.: Maple-comsps, maplecomsps lrb, maplecomsps chb. In: Proceedings of SAT Competition 2016 (2016)

    Google Scholar 

  22. Marchiori, E., Rossi, C.: A flipping genetic algorithm for hard 3-SAT problems (1999)

    Google Scholar 

  23. Rana, S., Heckendorn, R.B., Whitley, D.: A tractable Walsh analysis of SAT and its implications for genetic algorithms. In: Proceedings of the AAAI Conference on Artificial Intelligence, vol. 15, pp. 392–397 (1998)

    Google Scholar 

  24. Sami Cherif, M., Habet, D., Terrioux, C.: Un bandit manchot pour combiner CHB et VSIDS. In: Actes des 16èmes Journées Francophones de Programmation par Contraintes (JFPC), Nice, France (2021)

    Google Scholar 

  25. Selman, B., Kautz, H.A.: An empirical study of greedy local search for satisfiability testing. In: AAAI, vol. 93, pp. 46–51 (1993)

    Google Scholar 

  26. Silva, J.P.M., Sakallah, K.A.: GRASP—a new search algorithm for satisfiability. In: Proceedings of the 16th IEEE/ACM International Conference on Computer-Aided Design (ICCAD), pp. 220–227. IEEE (1997)

    Google Scholar 

  27. Soon, G.K., Guan, T.T., On, C.K., Alfred, R., Anthony, P.: A comparison on the performance of crossover techniques in video game. In: 2013 IEEE International Conference on Control System, Computing and Engineering. IEEE (2013)

    Google Scholar 

  28. Springer, P., Katoch, S.: A review on genetic algorithm: past, present, and future. Multimed. Tools Appl. 79, 44651–44681 (2020)

    Google Scholar 

  29. Zhang, X., Cai, S., Chen, Z.: Improving CDCL via local search. In: SAT Competition 2021, p. 42 (2021)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Sabrine Saouli .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2024 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Saouli, S., Baarir, S., Dutheillet, C. (2024). Tackling the Polarity Initialization Problem in SAT Solving Using a Genetic Algorithm. In: Benz, N., Gopinath, D., Shi, N. (eds) NASA Formal Methods. NFM 2024. Lecture Notes in Computer Science, vol 14627. Springer, Cham. https://doi.org/10.1007/978-3-031-60698-4_2

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-60698-4_2

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-60697-7

  • Online ISBN: 978-3-031-60698-4

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics