Skip to main content

Dynamic Polynomial Watchdog Encoding for Solving Weighted MaxSAT

  • Conference paper
  • First Online:
Theory and Applications of Satisfiability Testing – SAT 2018 (SAT 2018)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 10929))

Abstract

In this paper we present a novel pseudo-Boolean (PB) constraint encoding for solving the weighted MaxSAT problem with iterative SAT-based methods based on the Polynomial Watchdog (PW) CNF encoding. The watchdog of the PW encoding indicates whether the bound of the PB constraint holds. In our approach, we lift this static watchdog concept to a dynamic one allowing an incremental convergence to the optimal result. Consequently, we formulate and implement a SAT-based algorithm for our new Dynamic Polynomial Watchdog (DPW) encoding which can be applied for solving the MaxSAT problem. Furthermore, we introduce three fundamental optimizations of the PW encoding also suited for the original version leading to significantly less encoding size. Our experimental results show that our encoding and algorithm is competitive with state-of-the-art encodings as utilized in QMaxSAT (2nd place in last MaxSAT Evaluation 2017). Our encoding dominates two of the QMaxSAT encodings, and at the same time is able to solve unique instances. We integrated our new encoding into QMaxSAT and adapt the heuristic to choose between the only remaining encoding of QMaxSAT and our approach. This combined version solves 19 (4%) more instances in overall 30% less run time on the benchmark set of the MaxSAT Evaluation 2017. Compared to each encoding of QMaxSAT used in the evaluation, our encoding leads to an algorithm that is on average at least 2X faster.

This work is partially supported by the DFG project “Algebraic Fault Attacks” (funding id PO 1220/7-1, BE 1176 20/1, KR 1907/6-1).

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.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.

    Note that tare values of zero do not have any influence. Hence, only the tare bits \(T_i=1\) are added to \(TB_i\), and are also directly set to 1.

  2. 2.

    The run time difference to Table 1 is caused by the time needed for the encoding and the remaining part of our algorithm (e.g. analyzing the SAT solver model).

References

  1. Menai, M.E.B., Al-Yahya, T.N.: A taxonomy of exact methods for partial Max-SAT. J. Comput. Sci. Technol. 28(2), 232–246 (2013)

    Article  MathSciNet  Google Scholar 

  2. Hansen, P., Jaumard, B.: Algorithms for the maximum satisfiability problem. Computing 44(4), 279–303 (1990)

    Article  MathSciNet  Google Scholar 

  3. Zhang, H., Shen, H., Manya, F.: Exact algorithms for MAX-SAT. Electron. Notes Theor. Comput. Sci. 86(1), 190–203 (2003)

    Article  Google Scholar 

  4. Marques-Sila, J., Planes, J.: Algorithms for maximum satisfiability using unsatisfiable cores. In: Gulati, K. (ed.) Advanced Techniques in Logic Synthesis, Optimizations and Applications, pp. 171–182. Springer, New York (2011). https://doi.org/10.1007/978-1-4419-7518-8_10

    Chapter  Google Scholar 

  5. Ansótegui, C., Gabàs, J.: Solving (weighted) partial MaxSAT with ILP. In: CPAIOR, pp. 403–409 (2013)

    Google Scholar 

  6. Twelfth MaxSAT evaluation (2017). http://mse17.cs.helsinki.fi/index.html

  7. Koshimura, M., Zhang, T., Fujita, H., Hasegawa, R.: QMaxSAT: a partial Max-SAT solver system description. J. Satisf. Boolean Model. Comput. 8, 95–100 (2012)

    MathSciNet  MATH  Google Scholar 

  8. Bailleux, O., Boufkhad, Y.: Efficient CNF encoding of Boolean cardinality constraints. In: Rossi, F. (ed.) CP 2003. LNCS, vol. 2833, pp. 108–122. Springer, Heidelberg (2003). https://doi.org/10.1007/978-3-540-45193-8_8

    Chapter  MATH  Google Scholar 

  9. Joshi, S., Martins, R., Manquinho, V.: Generalized totalizer encoding for pseudo-Boolean constraints. In: Pesant, G. (ed.) CP 2015. LNCS, vol. 9255, pp. 200–209. Springer, Cham (2015). https://doi.org/10.1007/978-3-319-23219-5_15

    Chapter  Google Scholar 

  10. Uemura, N., Fujita, H., Koshimura, M., Zha, A.: A sat encoding of pseudo-Boolean constraints based on mixed radix, March 2017

    Google Scholar 

  11. Ogawa, T., Liu, Y., Hasegawa, R., Koshimura, M., Fujita, H.: Modulo based CNF encoding of cardinality constraints and its application to MaxSAT solvers. In: 2013 IEEE 25th International Conference on Tools with Artificial Intelligence (ICTAI), pp. 9–17. IEEE (2013)

    Google Scholar 

  12. Warners, J.P.: A linear-time transformation of linear inequalities into conjunctive normal form. Inf. Process. Lett. 68(2), 63–69 (1998)

    Article  MathSciNet  Google Scholar 

  13. Bailleux, O., Boufkhad, Y., Roussel, O.: New encodings of pseudo-Boolean constraints into CNF. In: Kullmann, O. (ed.) SAT 2009. LNCS, vol. 5584, pp. 181–194. Springer, Heidelberg (2009). https://doi.org/10.1007/978-3-642-02777-2_19

    Chapter  MATH  Google Scholar 

  14. Codish, M., Fekete, Y., Fuhs, C., Schneider-Kamp, P.: Optimal base encodings for pseudo-Boolean constraints. In: Abdulla, P.A., Leino, K.R.M. (eds.) TACAS 2011. LNCS, vol. 6605, pp. 189–204. Springer, Heidelberg (2011). https://doi.org/10.1007/978-3-642-19835-9_16

    Chapter  MATH  Google Scholar 

  15. Eén, N., Sörensson, N.: Translating pseudo-Boolean constraints into SAT. J. Satisf. Boolean Model. Comput. 2, 1–26 (2006)

    MATH  Google Scholar 

  16. Batcher, K.E.: Sorting networks and their applications. In: AFIPS Spring Joint Computing Conference, pp. 307–314. ACM (1968)

    Google Scholar 

  17. Bryant, R.E.: Graph-based algorithms for Boolean function manipulation. IEEE Trans. Comput. 100(8), 677–691 (1986)

    Article  Google Scholar 

  18. Manthey, N., Philipp, T., Steinke, P.: A more compact translation of pseudo-Boolean constraints into CNF such that generalized arc consistency is maintained. In: Lutz, C., Thielscher, M. (eds.) KI 2014. LNCS (LNAI), vol. 8736, pp. 123–134. Springer, Cham (2014). https://doi.org/10.1007/978-3-319-11206-0_13

    Chapter  Google Scholar 

  19. Martins, R., Manquinho, V., Lynce, I.: Open-WBO: a modular MaxSAT solver,. In: Sinz, C., Egly, U. (eds.) SAT 2014. LNCS, vol. 8561, pp. 438–445. Springer, Cham (2014). https://doi.org/10.1007/978-3-319-09284-3_33

    Chapter  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding authors

Correspondence to Tobias Paxian , Sven Reimer or Bernd Becker .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Springer International Publishing AG, part of Springer Nature

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Paxian, T., Reimer, S., Becker, B. (2018). Dynamic Polynomial Watchdog Encoding for Solving Weighted MaxSAT. In: Beyersdorff, O., Wintersteiger, C. (eds) Theory and Applications of Satisfiability Testing – SAT 2018. SAT 2018. Lecture Notes in Computer Science(), vol 10929. Springer, Cham. https://doi.org/10.1007/978-3-319-94144-8_3

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-94144-8_3

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-94143-1

  • Online ISBN: 978-3-319-94144-8

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics