Exploiting Database Management Systems and Treewidth for Counting

J. Fichte, Markus Hecher, Patrick Thier, S. Woltran
{"title":"Exploiting Database Management Systems and Treewidth for Counting","authors":"J. Fichte, Markus Hecher, Patrick Thier, S. Woltran","doi":"10.1017/S147106842100003X","DOIUrl":null,"url":null,"abstract":"\n Bounded treewidth is one of the most cited combinatorial invariants in the literature. It was also applied for solving several counting problems efficiently. A canonical counting problem is #Sat, which asks to count the satisfying assignments of a Boolean formula. Recent work shows that benchmarking instances for #Sat often have reasonably small treewidth. This paper deals with counting problems for instances of small treewidth. We introduce a general framework to solve counting questions based on state-of-the-art database management systems (DBMSs). Our framework takes explicitly advantage of small treewidth by solving instances using dynamic programming (DP) on tree decompositions (TD). Therefore, we implement the concept of DP into a DBMS (PostgreSQL), since DP algorithms are already often given in terms of table manipulations in theory. This allows for elegant specifications of DP algorithms and the use of SQL to manipulate records and tables, which gives us a natural approach to bring DP algorithms into practice. To the best of our knowledge, we present the first approach to employ a DBMS for algorithms on TDs. A key advantage of our approach is that DBMSs naturally allow for dealing with huge tables with a limited amount of main memory (RAM).","PeriodicalId":293413,"journal":{"name":"International Symposium on Practical Aspects of Declarative Languages","volume":"38 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2020-01-13","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"21","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"International Symposium on Practical Aspects of Declarative Languages","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1017/S147106842100003X","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 21

Abstract

Bounded treewidth is one of the most cited combinatorial invariants in the literature. It was also applied for solving several counting problems efficiently. A canonical counting problem is #Sat, which asks to count the satisfying assignments of a Boolean formula. Recent work shows that benchmarking instances for #Sat often have reasonably small treewidth. This paper deals with counting problems for instances of small treewidth. We introduce a general framework to solve counting questions based on state-of-the-art database management systems (DBMSs). Our framework takes explicitly advantage of small treewidth by solving instances using dynamic programming (DP) on tree decompositions (TD). Therefore, we implement the concept of DP into a DBMS (PostgreSQL), since DP algorithms are already often given in terms of table manipulations in theory. This allows for elegant specifications of DP algorithms and the use of SQL to manipulate records and tables, which gives us a natural approach to bring DP algorithms into practice. To the best of our knowledge, we present the first approach to employ a DBMS for algorithms on TDs. A key advantage of our approach is that DBMSs naturally allow for dealing with huge tables with a limited amount of main memory (RAM).
利用数据库管理系统和树宽度进行计数
有界树宽是文献中引用最多的组合不变量之一。该方法也被应用于若干计数问题的有效求解。一个典型的计数问题是#Sat,它要求对布尔公式的满足赋值进行计数。最近的工作表明,#Sat的基准测试实例通常具有相当小的树宽。本文研究了小树宽实例的计数问题。我们介绍了一个通用框架来解决基于最先进的数据库管理系统(dbms)的计数问题。我们的框架通过在树分解(TD)上使用动态规划(DP)求解实例,明确地利用了小树宽的优势。因此,我们在DBMS (PostgreSQL)中实现了DP的概念,因为DP算法在理论上已经经常以表操作的形式给出。这允许DP算法的优雅规范和使用SQL来操作记录和表,这为我们提供了一种将DP算法付诸实践的自然方法。据我们所知,我们提出了在td上为算法使用DBMS的第一种方法。我们的方法的一个关键优势是,dbms自然允许用有限的主内存(RAM)处理大型表。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信