Cargando…
Tinted, Detached, and Lazy CNF-XOR Solving and Its Applications to Counting and Sampling
Given a Boolean formula, the problem of counting seeks to estimate the number of solutions of F while the problem of uniform sampling seeks to sample solutions uniformly at random. Counting and uniform sampling are fundamental problems in computer science with a wide range of applications ranging fr...
Autores principales: | , , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
2020
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7363182/ http://dx.doi.org/10.1007/978-3-030-53288-8_22 |
_version_ | 1783559618855698432 |
---|---|
author | Soos, Mate Gocht, Stephan Meel, Kuldeep S. |
author_facet | Soos, Mate Gocht, Stephan Meel, Kuldeep S. |
author_sort | Soos, Mate |
collection | PubMed |
description | Given a Boolean formula, the problem of counting seeks to estimate the number of solutions of F while the problem of uniform sampling seeks to sample solutions uniformly at random. Counting and uniform sampling are fundamental problems in computer science with a wide range of applications ranging from constrained random simulation, probabilistic inference to network reliability and beyond. The past few years have witnessed the rise of hashing-based approaches that use XOR-based hashing and employ SAT solvers to solve the resulting CNF formulas conjuncted with XOR constraints. Since over 99% of the runtime of hashing-based techniques is spent inside the SAT queries, improving CNF-XOR solvers has emerged as a key challenge. In this paper, we identify the key performance bottlenecks in the recently proposed [Formula: see text] architecture, and we focus on overcoming these bottlenecks by accelerating the XOR handling within the SAT solver and on improving the solver integration through a smarter use of (partial) solutions. We integrate the resulting system, called [Formula: see text], with the state of the art approximate model counter, [Formula: see text], and the state of the art almost-uniform model sampler [Formula: see text]. Through an extensive evaluation over a large benchmark set of over 1896 instances, we observe that [Formula: see text] leads to consistent speed up for both counting and sampling, and in particular, we solve 77 and 51 more instances for counting and sampling respectively. |
format | Online Article Text |
id | pubmed-7363182 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2020 |
record_format | MEDLINE/PubMed |
spelling | pubmed-73631822020-07-16 Tinted, Detached, and Lazy CNF-XOR Solving and Its Applications to Counting and Sampling Soos, Mate Gocht, Stephan Meel, Kuldeep S. Computer Aided Verification Article Given a Boolean formula, the problem of counting seeks to estimate the number of solutions of F while the problem of uniform sampling seeks to sample solutions uniformly at random. Counting and uniform sampling are fundamental problems in computer science with a wide range of applications ranging from constrained random simulation, probabilistic inference to network reliability and beyond. The past few years have witnessed the rise of hashing-based approaches that use XOR-based hashing and employ SAT solvers to solve the resulting CNF formulas conjuncted with XOR constraints. Since over 99% of the runtime of hashing-based techniques is spent inside the SAT queries, improving CNF-XOR solvers has emerged as a key challenge. In this paper, we identify the key performance bottlenecks in the recently proposed [Formula: see text] architecture, and we focus on overcoming these bottlenecks by accelerating the XOR handling within the SAT solver and on improving the solver integration through a smarter use of (partial) solutions. We integrate the resulting system, called [Formula: see text], with the state of the art approximate model counter, [Formula: see text], and the state of the art almost-uniform model sampler [Formula: see text]. Through an extensive evaluation over a large benchmark set of over 1896 instances, we observe that [Formula: see text] leads to consistent speed up for both counting and sampling, and in particular, we solve 77 and 51 more instances for counting and sampling respectively. 2020-06-13 /pmc/articles/PMC7363182/ http://dx.doi.org/10.1007/978-3-030-53288-8_22 Text en © The Author(s) 2020 Open Access This chapter is licensed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license and indicate if changes were made. The images or other third party material in this chapter are included in the chapter's Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the chapter's Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. |
spellingShingle | Article Soos, Mate Gocht, Stephan Meel, Kuldeep S. Tinted, Detached, and Lazy CNF-XOR Solving and Its Applications to Counting and Sampling |
title | Tinted, Detached, and Lazy CNF-XOR Solving and Its Applications to Counting and Sampling |
title_full | Tinted, Detached, and Lazy CNF-XOR Solving and Its Applications to Counting and Sampling |
title_fullStr | Tinted, Detached, and Lazy CNF-XOR Solving and Its Applications to Counting and Sampling |
title_full_unstemmed | Tinted, Detached, and Lazy CNF-XOR Solving and Its Applications to Counting and Sampling |
title_short | Tinted, Detached, and Lazy CNF-XOR Solving and Its Applications to Counting and Sampling |
title_sort | tinted, detached, and lazy cnf-xor solving and its applications to counting and sampling |
topic | Article |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7363182/ http://dx.doi.org/10.1007/978-3-030-53288-8_22 |
work_keys_str_mv | AT soosmate tinteddetachedandlazycnfxorsolvinganditsapplicationstocountingandsampling AT gochtstephan tinteddetachedandlazycnfxorsolvinganditsapplicationstocountingandsampling AT meelkuldeeps tinteddetachedandlazycnfxorsolvinganditsapplicationstocountingandsampling |