arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.18036cs.DScs.DB
收藏

最优动态参数化子集采样

Optimal Dynamic Parameterized Subset Sampling

Junhao Gan, Seeun William Umboh, Hanzhi Wang, Anthony Wirth, Zhuo Zhang

AI总结:

本文在 Word RAM 模型下研究动态参数化子集采样问题,提出了具有线性预处理时间、常数更新时间及最优查询时间的算法,并证明了浮点权重情形下的计算硬度,同时给出了高效生成截断几何随机变量的关键技术。

摘要:

本文在 Word RAM 模型中研究动态参数化子集采样(DPSS)问题。在 DPSS 中,输入是一个包含 $n$ 个元素的集合 $S$,其中每个元素 $x$ 具有一个非负整数权重 $w(x)$。给定一对查询参数 $(α, β)$(每个均为非负有理数),对 $S$ 的参数化子集采样查询旨在返回一个子集 $T \subseteq S$,使得每个元素 $x \in S$ 独立地以概率 $p_x(α, β) = \min \left\{\frac{w(x)}{α\sum_{x\in S} w(x)+β}, 1 \right\}$ 被选中并包含在 $T$ 中。更具体地,DPSS 问题定义于动态环境中,其中元素集合 $S$ 可通过插入新元素或删除现有元素进行更新。我们的第一个主要结果是解决 DPSS 问题的最优算法,该算法实现 $O(n)$ 的预处理时间,对于即时给定的参数对 $(α, β)$,每次查询的期望时间为 $O(1+μ_S(α,β))$,每次更新的时间为 $O(1)$;此处 $μ_S(α,β)$ 是查询结果的期望大小。在任何时刻,算法的最坏情况空间消耗与 $S$ 中当前元素数量呈线性关系。我们的第二个主要贡献是针对元素权重为 $O(1)$ 字长浮点数(而非整数)时 DPSS 问题的计算硬度结果。具体而言,我们将整数排序归约到带有浮点权重的仅删除 DPSS 问题。我们的归约表明,针对带浮点权重的仅删除 DPSS 问题(实现上述所有相同界限)的最优算法,将意味着整数排序的最优算法。后者仍是一个重要的开放问题。最后,我们第一个主要结果的一项关键技术要素,是在 Word RAM 模型中以 $O(1)$ 期望时间高效生成截断几何随机变量的算法。

英文摘要:

In this paper, we study the Dynamic Parameterized Subset Sampling (DPSS) problem in the Word RAM model. In DPSS, the input is a set,~$S$, of~$n$ items, where each item,~$x$, has a non-negative integer weight,~$w(x)$. Given a pair of query parameters, $(α, β)$, each of which is a non-negative rational number, a parameterized subset sampling query on~$S$ seeks to return a subset $T \subseteq S$ such that each item $x \in S$ is selected in~$T$, independently, with probability $p_x(α, β) = \min \left\{\frac{w(x)}{α\sum_{x\in S} w(x)+β}, 1 \right\}$. More specifically, the DPSS problem is defined in a dynamic setting, where the item set,~$S$, can be updated with insertions of new items or deletions of existing items. Our first main result is an optimal algorithm for solving the DPSS problem, which achieves~$O(n)$ pre-processing time, $O(1+μ_S(α,β))$ expected time for each query parameterized by $(α, β)$, given on-the-fly, and $O(1)$ time for each update; here, $μ_S(α,β)$ is the expected size of the query result. At all times, the worst-case space consumption of our algorithm is linear in the current number of items in~$S$. Our second main contribution is a hardness result for the DPSS problem when the item weights are~$O(1)$-word float numbers, rather than integers. Specifically, we reduce Integer Sorting to the deletion-only DPSS problem with float item weights. Our reduction implies that an optimal algorithm for deletion-only DPSS with float item weights (achieving all the same bounds as aforementioned) implies an optimal algorithm for Integer Sorting. The latter remains an important open problem. Last but not least, a key technical ingredient for our first main result is an efficient algorithm for generating Truncated Geometric random variates in $O(1)$ expected time in the Word RAM model.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑