Optimal Dynamic Parameterized Subset Sampling

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Gan, Junhao, Umboh, Seeun William, Wang, Hanzhi, Wirth, Anthony, Zhang, Zhuo
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866916412073705472
author Gan, Junhao
Umboh, Seeun William
Wang, Hanzhi
Wirth, Anthony
Zhang, Zhuo
author_facet Gan, Junhao
Umboh, Seeun William
Wang, Hanzhi
Wirth, Anthony
Zhang, Zhuo
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2409_18036
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Optimal Dynamic Parameterized Subset Sampling
Gan, Junhao
Umboh, Seeun William
Wang, Hanzhi
Wirth, Anthony
Zhang, Zhuo
Data Structures and Algorithms
Databases
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.
title Optimal Dynamic Parameterized Subset Sampling
topic Data Structures and Algorithms
Databases
url https://arxiv.org/abs/2409.18036