Estimating the Size of Union of Sets in Streaming Models

Kuldeep S. Meel, N. V. Vinodchandran, Sourav Chakraborty
{"title":"Estimating the Size of Union of Sets in Streaming Models","authors":"Kuldeep S. Meel, N. V. Vinodchandran, Sourav Chakraborty","doi":"10.1145/3452021.3458333","DOIUrl":null,"url":null,"abstract":"In this paper we study the problem of estimating the size of the union of sets $S_1, \\dots, S_M$ where each set $S_i \\subseteq Ømega$ (for some discrete universe $Ømega$) is implicitly presented and comes in a streaming fashion. We define the notion of Delphic sets to capture class of streaming problems where membership, sampling, and counting calls to the sets are efficient. In particular, we show our notion of Delphic sets capture three well known problems: Klee's measure problem (discrete version), test coverage estimation, and model counting of DNF formulas. The Klee's measure problem corresponds to computation of volume of multi-dimension axis aligned rectangles, i.e., every d-dimension axis-aligned rectangle can be defined as $[a_1,b_1] \\times [a_2,b_2] \\times łdots \\times [a_d, b_d]$. The problem of test coverage estimation focuses on the computation of coverage measure for a given testing array in the context of combinatorial testing, which is a fundamental technique in the context of hardware and software testing. Finally, given a DNF formula $\\varphi = T_1 \\vee T_2 \\vee łdots \\vee T_M$, the problem of model counting seeks to compute the number of satisfying assignments of $\\varphi$. The primary contribution of our work is a simple and efficient sampling-based algorithm, called \\hybrid, for estimating the of union of sets in streaming setting. Our algorithm has the space complexity of $O(Rłog |Ømega|)$ and update time is $O(Rłog R \\cdot łog(M/δ) \\cdot łog|Ømega|)$ where, $R = Ołeft(łog (M/δ)\\cdot \\varepsilon^2 \\right).$ Consequently, our algorithm provides the first algorithm with linear dependence on d for Klee's measure problem in streaming setting for $d>1$, thereby settling the open problem of Tirthpura and Woodruff (PODS-12). Furthermore, a straightforward application of our algorithm lends to an efficient algorithm for coverage estimation problem in streaming setting. We then investigate whether the space complexity for coverage estimation can be further improved, and in this context, we present another streaming algorithm that uses near-optimal $O(tłog n/\\varepsilon^2)$ space complexity but uses an update algorithm that is in $\\rm P ^\\rm NP $, thereby showcasing an interesting time vs space trade-off in the streaming setting. Finally, we demonstrate the generality of our Delphic sets by obtaining a streaming algorithm for model counting of DNF formulas. It is worth remarking that we view a key strength of our work is the simplicity of both the algorithm and its theoretical analysis, which makes it amenable to practical implementation and easy adoption.","PeriodicalId":405398,"journal":{"name":"Proceedings of the 40th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems","volume":"1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-06-20","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"7","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 40th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3452021.3458333","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 7

Abstract

In this paper we study the problem of estimating the size of the union of sets $S_1, \dots, S_M$ where each set $S_i \subseteq Ømega$ (for some discrete universe $Ømega$) is implicitly presented and comes in a streaming fashion. We define the notion of Delphic sets to capture class of streaming problems where membership, sampling, and counting calls to the sets are efficient. In particular, we show our notion of Delphic sets capture three well known problems: Klee's measure problem (discrete version), test coverage estimation, and model counting of DNF formulas. The Klee's measure problem corresponds to computation of volume of multi-dimension axis aligned rectangles, i.e., every d-dimension axis-aligned rectangle can be defined as $[a_1,b_1] \times [a_2,b_2] \times łdots \times [a_d, b_d]$. The problem of test coverage estimation focuses on the computation of coverage measure for a given testing array in the context of combinatorial testing, which is a fundamental technique in the context of hardware and software testing. Finally, given a DNF formula $\varphi = T_1 \vee T_2 \vee łdots \vee T_M$, the problem of model counting seeks to compute the number of satisfying assignments of $\varphi$. The primary contribution of our work is a simple and efficient sampling-based algorithm, called \hybrid, for estimating the of union of sets in streaming setting. Our algorithm has the space complexity of $O(Rłog |Ømega|)$ and update time is $O(Rłog R \cdot łog(M/δ) \cdot łog|Ømega|)$ where, $R = Ołeft(łog (M/δ)\cdot \varepsilon^2 \right).$ Consequently, our algorithm provides the first algorithm with linear dependence on d for Klee's measure problem in streaming setting for $d>1$, thereby settling the open problem of Tirthpura and Woodruff (PODS-12). Furthermore, a straightforward application of our algorithm lends to an efficient algorithm for coverage estimation problem in streaming setting. We then investigate whether the space complexity for coverage estimation can be further improved, and in this context, we present another streaming algorithm that uses near-optimal $O(tłog n/\varepsilon^2)$ space complexity but uses an update algorithm that is in $\rm P ^\rm NP $, thereby showcasing an interesting time vs space trade-off in the streaming setting. Finally, we demonstrate the generality of our Delphic sets by obtaining a streaming algorithm for model counting of DNF formulas. It is worth remarking that we view a key strength of our work is the simplicity of both the algorithm and its theoretical analysis, which makes it amenable to practical implementation and easy adoption.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
流模型中集合并集大小的估计
在本文中,我们研究了估计集合并集的大小$S_1, \dots, S_M$的问题,其中每个集合$S_i \subseteq Ømega$(对于某些离散宇宙$Ømega$)隐式地表示并以流方式出现。我们定义了德尔菲集合的概念,以捕获一类流问题,其中对集合的隶属关系、采样和计数调用是有效的。特别地,我们展示了我们的德尔菲集的概念捕获了三个众所周知的问题:Klee的度量问题(离散版本),测试覆盖率估计和DNF公式的模型计数。Klee's measure问题对应于多维轴向矩形的体积计算,即每个d维轴向矩形都可以定义为$[a_1,b_1] \times [a_2,b_2] \times łdots \times [a_d, b_d]$。测试覆盖估计问题是组合测试环境下给定测试阵列的覆盖度量计算问题,是硬件和软件测试环境下的一项基本技术。最后,给定DNF公式$\varphi = T_1 \vee T_2 \vee łdots \vee T_M$,模型计数问题寻求计算$\varphi$的满足赋值的个数。我们工作的主要贡献是一个简单而有效的基于采样的算法,称为\hybrid,用于估计流设置中集合的并集。我们的算法的空间复杂度为$O(Rłog |Ømega|)$,更新时间为$O(Rłog R \cdot łog(M/δ) \cdot łog|Ømega|)$,其中,$R = Ołeft(łog (M/δ)\cdot \varepsilon^2 \right).$因此,我们的算法为$d>1$的流设置中Klee的度量问题提供了第一个与d线性相关的算法,从而解决了Tirthpura和Woodruff (pod -12)的开放问题。此外,该算法的简单应用为流环境下的覆盖估计问题提供了一种有效的算法。然后,我们研究覆盖估计的空间复杂性是否可以进一步提高,在这种情况下,我们提出了另一种流算法,该算法使用接近最优的$O(tłog n/\varepsilon^2)$空间复杂性,但使用$\rm P ^\rm NP $中的更新算法,从而展示了流设置中有趣的时间与空间权衡。最后,我们通过获得一个用于DNF公式模型计数的流算法来证明我们的德尔菲集的一般性。值得注意的是,我们认为我们工作的一个关键优势是算法及其理论分析的简单性,这使得它易于实际实现和易于采用。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Cover or Pack: New Upper and Lower Bounds for Massively Parallel Joins Data-Independent Space Partitionings for Summaries 2021 ACM PODS Alberto O. Mendelzon Test-of-Time Award Modern Lower Bound Techniques in Database Theory and Constraint Satisfaction Privacy
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1