Guillermo De Ita, J. R. Marcial-Romero, J. A. H. Servín
{"title":"A bottom-up algorithm for solving ♯2SAT","authors":"Guillermo De Ita, J. R. Marcial-Romero, J. A. H. Servín","doi":"10.1093/jigpal/jzaa009","DOIUrl":null,"url":null,"abstract":"\n Counting models for a two conjunctive formula (2-CF) $F$, a problem known as $\\sharp $2Sat, is a classic $\\sharp $P complete problem. Given a 2-CF $F$ as input, its constraint graph $G$ is built. If $G$ is acyclic, then $\\sharp $2Sat($F$) can be computed efficiently. In this paper, we address the case when $G$ has cycles.\n When $G$ is cyclic, we propose a decomposition on the constraint graph $G$ that allows the computation of $\\sharp $2Sat($F$) in incremental way. Let $T$ be a cactus graph of $G$ containing a maximal number of independent cycles, and let $\\overline{T}=(E(G)-E(T))$ be a subset of frond edges from $G$. The clauses in $\\overline{T}$ are ordered in connected components $\\{K_1, \\ldots , K_r\\}$. Each $(G \\cup K_i), i=1,\\ldots ,r$ is a knot (a set of intersected cycles) of the graph.\n The arrangement of the clauses of $\\overline{T}$ allows the decomposition of $G$ in knots and provides a way of computing $\\sharp $2Sat(F) in an incremental way. Our procedure has a bottom-up orientation for the computation of $\\sharp $2Sat($F$). It begins with $F_0 = T$. In each iteration of the procedure, a new clause $C_i \\in \\overline{T}$ is considered in order to form $F_i = (F_{i-1} \\wedge C_i)$ and then to compute $\\sharp $2Sat$(F_i)$ based on the computation of $\\sharp $2Sat$(F_{i-1})$.","PeriodicalId":304915,"journal":{"name":"Log. J. IGPL","volume":"92 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2020-05-05","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Log. J. IGPL","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1093/jigpal/jzaa009","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
Counting models for a two conjunctive formula (2-CF) $F$, a problem known as $\sharp $2Sat, is a classic $\sharp $P complete problem. Given a 2-CF $F$ as input, its constraint graph $G$ is built. If $G$ is acyclic, then $\sharp $2Sat($F$) can be computed efficiently. In this paper, we address the case when $G$ has cycles.
When $G$ is cyclic, we propose a decomposition on the constraint graph $G$ that allows the computation of $\sharp $2Sat($F$) in incremental way. Let $T$ be a cactus graph of $G$ containing a maximal number of independent cycles, and let $\overline{T}=(E(G)-E(T))$ be a subset of frond edges from $G$. The clauses in $\overline{T}$ are ordered in connected components $\{K_1, \ldots , K_r\}$. Each $(G \cup K_i), i=1,\ldots ,r$ is a knot (a set of intersected cycles) of the graph.
The arrangement of the clauses of $\overline{T}$ allows the decomposition of $G$ in knots and provides a way of computing $\sharp $2Sat(F) in an incremental way. Our procedure has a bottom-up orientation for the computation of $\sharp $2Sat($F$). It begins with $F_0 = T$. In each iteration of the procedure, a new clause $C_i \in \overline{T}$ is considered in order to form $F_i = (F_{i-1} \wedge C_i)$ and then to compute $\sharp $2Sat$(F_i)$ based on the computation of $\sharp $2Sat$(F_{i-1})$.