Efficient Dynamic Weighted Set Sampling and Its Extension
Fangyuan Zhang, Mengxu Jiang, Sibo Wang
摘要
Given a weighted set S of n elements, weighted set sampling (WSS) samples an element in S so that each element
a i
; is sampled with a probability proportional to its weight w (
a i
). The classic alias method pre-processes an index in O ( n ) time with O ( n ) space and handles WSS with O (1) time. Yet, the alias method does not support dynamic updates. By minor modifications of existing dynamic WSS schemes, it is possible to achieve an expected O (1) update time and draw t independent samples in expected O ( t ) time with linear space, which is theoretically optimal. But such a method is impractical and even slower than a binary search tree-based solution. How to support both efficient sampling and updates in practice is still challenging. Motivated by this, we design BUS , an efficient scheme that handles an update in O (1) amortized time and draws t independent samples in O (log n + t) time with linear space.
A natural extension of WSS is the weighted independent range sampling (WIRS) , where each element in S is a data point from R. Given an arbitrary range Q = [ℓ, r ] at query time, WIRS aims to do weighted set sampling on the set
S Q
of data points falling into range Q. We show that by integrating the theoretically optimal dynamic WSS scheme mentioned above, it can handle an update in O (log n ) time and can draw t independent samples for WIRS in O (log n + t ) time, the same as the state-of-the-art static algorithm. Again, such a solution by integrating the optimal dynamic WSS scheme is still impractical to handle WIRS queries. We further propose WIRS-BUS to integrate BUS to handle WIRS queries, which handles each update in O (log n ) time and draws t independent samples in O (log 2 n + t ) time with linear space. Extensive experiments show that our BUS and WIRS-BUS are efficient for both sampling and updates.
问问这篇 Paper
智能体会读完全文。
Lune 把这篇 Paper 索引到了每一个公式,引用它的顶会 Paper 也一样。你提问,回答直接引用原文。
引用它的顶会 Paper4
- Independent Range Sampling on Interval DataDaichi AmagataICDE 2024 · 被引用 9 次
- GENTI: GPU-powered Walk-based Subgraph Extraction for Scalable Representation Learning on Dynamic GraphsZihao Yu, Ningyi Liao, Siqiang LuoVLDB 2024 · 被引用 8 次
- Poisson Sampling over Acyclic JoinsLiese Bekkers, Frank Neven, Lorrens Pantelis, Stijn VansummerenSIGMOD 2026 · 被引用 1 次
- RidgeWalker: Perfectly Pipelined Graph Random Walks on FPGAsHongshi Tan, Yao Chen, Xinyu Chen, Qizhen Zhang 等HPCA 2026
它引用的顶会 Paper2
相关 Paper
- DIPS: Optimal Dynamic Index for Poisson πps SamplingJinchao Huang, Sibo WangKDD 2025
- Practical Dynamic Extension for Sampling IndexesDouglas B. Rumbaugh, Dong XieSIGMOD 2024 · 被引用 3 次
- WOR and p's: Sketches for ℓp-Sampling Without ReplacementEdith Cohen, Rasmus Pagh, David P. WoodruffNeurIPS 2020
- Optimal Dynamic Subset Sampling: Theory and ApplicationsLu Yi, Hanzhi Wang, Zhewei WeiKDD 2023 · 被引用 4 次
- FIRAS: A Framework for Interval Range Search and SamplingDaichi Amagata, Panagiotis Simatis, Panagiotis Bouros, Nikos MamoulisSIGMOD 2026 · 被引用 4 次
