English

Optimal Dynamic Subset Sampling: Theory and Applications

Data Structures and Algorithms 2023-09-22 v4

Abstract

We study the fundamental problem of sampling independent events, called subset sampling. Specifically, consider a set of nn events S={x1,,xn}S=\{x_1, \ldots, x_n\}, where each event xix_i has an associated probability p(xi)p(x_i). The subset sampling problem aims to sample a subset TST \subseteq S, such that every xix_i is independently included in SS with probability pip_i. A naive solution is to flip a coin for each event, which takes O(n)O(n) time. However, the specific goal is to develop data structures that allow drawing a sample in time proportional to the expected output size μ=i=1np(xi)\mu=\sum_{i=1}^n p(x_i), which can be significantly smaller than nn in many applications. The subset sampling problem serves as an important building block in many tasks and has been the subject of various research for more than a decade. However, most of the existing subset sampling approaches are conducted in a static setting, where the events or their associated probability in set SS is not allowed to be changed over time. These algorithms incur either large query time or update time in a dynamic setting despite the ubiquitous time-evolving events with changing probability in real life. Therefore, it is a pressing need, but still, an open problem, to design efficient dynamic subset sampling algorithms. In this paper, we propose ODSS, the first optimal dynamic subset sampling algorithm. The expected query time and update time of ODSS are both optimal, matching the lower bounds of the subset sampling problem. We present a nontrivial theoretical analysis to demonstrate the superiority of ODSS. We also conduct comprehensive experiments to empirically evaluate the performance of ODSS. Moreover, we apply ODSS to a concrete application: influence maximization. We empirically show that our ODSS can improve the complexities of existing influence maximization algorithms on large real-world evolving social networks.

Keywords

Cite

@article{arxiv.2305.18785,
  title  = {Optimal Dynamic Subset Sampling: Theory and Applications},
  author = {Lu Yi and Hanzhi Wang and Zhewei Wei},
  journal= {arXiv preprint arXiv:2305.18785},
  year   = {2023}
}

Comments

ACM SIGKDD 2023

R2 v1 2026-06-28T10:50:17.280Z