在无环度约束下的连接采样与(循环)子图采样
Join Sampling under Acyclic Degree Constraints and (Cyclic) Subgraph Sampling
AI总结:
本文提出在无环度约束下高效连接采样方法,并推广至有向及无向子图采样,通过丢弃循环约束保持多拟阵界,实现均匀随机采样。
摘要:
给定一个具有无环度约束集合的连接,我们展示了如何在预处理期望时间 $O(\mathrm{IN})$ 之后,以期望时间 $O(\mathit{polymat}/ \max \{1, \mathrm{OUT}\})$ 从连接结果中均匀随机抽取一个样本,其中 $\mathrm{IN}$、$\mathrm{OUT}$ 和 $\mathit{polymat}$ 分别是连接的输入大小、输出大小和多拟阵界。这与现有最优结果(Deng 等人和 Kim 等人,均发表于 PODS'23)相比具有优势,后者表明在期望时间 $\tilde{O}(\mathrm{IN})$ 的预处理阶段之后,可以以期望时间 $\tilde{O}(\mathrm{AGM} / \max \{1, \mathrm{OUT}\})$ 抽取均匀随机样本,其中 $\mathrm{AGM}$ 是连接的 AGM 界。\n\n随后,我们利用我们的技术来解决有向子图采样问题。设 $G = (V, E)$ 是一个有向数据图,其中每个顶点的出度至多为 $\lambda$,并设 $P$ 是一个具有 $O(1)$ 个顶点的有向模式图。目标是均匀采样 $G$ 中 $P$ 的一个出现。该问题可以建模为输入大小 $\mathrm{IN} = \Theta(|E|)$ 的连接采样,但每当 $P$ 包含环时,转换后的连接具有循环度约束。我们证明总是可以丢弃某些度约束,使得 (i) 剩余的约束是无环的,并且 (ii) 新连接具有与旧连接渐近相同的多拟阵界 $\mathit{polymat}$。将此发现与我们的新连接采样解决方案相结合,可以得到一种算法,在 $O(|E|)$ 期望时间预处理后,以期望时间 $O(\mathit{polymat}/ \max \{1, \mathrm{OUT}\})$ 从原始(循环)连接中采样(从而产生 $P$ 的均匀随机出现)。我们还证明了无向子图采样的类似结果,并展示了我们的技术在该场景中如何可以显著简化。
英文摘要:
Given a join with an acyclic set of degree constraints, we show how to draw a uniformly random sample from the join result in $O(\mathit{polymat}/ \max \{1, \mathrm{OUT} \})$ expected time after a preprocessing of $O(\mathrm{IN})$ expected time, where $\mathrm{IN}$, $\mathrm{OUT}$, and $\mathit{polymat}$ are the join's input size, output size, and polymatroid bound, respectively. This compares favorably with the state of the art (Deng et al.\ and Kim et al., both in PODS'23), which states that a uniformly random sample can be drawn in $\tilde{O}(\mathrm{AGM} / \max \{1, \mathrm{OUT}\})$ expected time after a preprocessing phase of $\tilde{O}(\mathrm{IN})$ expected time, where $\mathrm{AGM}$ is the join's AGM bound. We then utilize our techniques to tackle {\em directed subgraph sampling}. Let $G = (V, E)$ be a directed data graph where each vertex has an out-degree at most $λ$, and let $P$ be a directed pattern graph with $O(1)$ vertices. The objective is to uniformly sample an occurrence of $P$ in $G$. The problem can be modeled as join sampling with input size $\mathrm{IN} = Θ(|E|)$ but, whenever $P$ contains cycles, the converted join has {\em cyclic} degree constraints. We show that it is always possible to throw away certain degree constraints such that (i) the remaining constraints are acyclic and (ii) the new join has asymptotically the same polymatroid bound $\mathit{polymat}$ as the old one. Combining this finding with our new join sampling solution yields an algorithm to sample from the original (cyclic) join (thereby yielding a uniformly random occurrence of $P$) in $O(\mathit{polymat}/ \max \{1, \mathrm{OUT}\})$ expected time after $O(|E|)$ expected-time preprocessing. We also prove similar results for {\em undirected subgraph sampling} and demonstrate how our techniques can be significantly simplified in that scenario.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。