arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1407.1689cs.DS
收藏

空间受限设置中的采样

Sampling in Space Restricted Settings

Anup Bhattacharya, Davis Issac, Ragesh Jaiswal, Amit Kumar

摘要:

空间有效的算法在处理大量数据方面发挥着核心作用。在这种情况下,人们希望使用少量的“工作空间”来分析大量数据。在许多用于分析大数据的算法中,关键步骤之一是从数据点中保持一个(或少量)随机样本。在本文中,我们考虑两个空间受限的设置-(i)流模型,其中数据随着时间的推移到达,并且可以只使用少量的存储,以及(ii)查询模型,其中我们可以在低空间中构造数据并回答采样查询。在本文中,我们证明了以下结果,在上述两个设置:-在流设置,我们想保持一个随机样本的元素看到目前为止。我们证明,可以保持一个随机样本使用$O(\log n)$随机位和$O(\log n)$空间,其中$n$是到目前为止看到的元素的数量。我们可以将其扩展到元素也具有权重的情况。- 在查询模型中,存在具有权重$w_1, ..., w_n$(其是$w$比特整数)的$n$元素,并且人们希望以与其权重成比例的概率对随机元素进行采样。Bringmann和Larsen(STOC 2013)展示了如何使用$nw +1 $空间(而信息论下限是$n w$)对这样的元素进行采样。本文考虑近似抽样问题,给定误差参数$\varepsilon$,元素的抽样概率可以偏离一个$\varepsilon$因子.我们给出了匹配的上界和下界这个问题。

英文摘要:

Space efficient algorithms play a central role in dealing with large amount of data. In such settings, one would like to analyse the large data using small amount of "working space". One of the key steps in many algorithms for analysing large data is to maintain a (or a small number) random sample from the data points. In this paper, we consider two space restricted settings -- (i) streaming model, where data arrives over time and one can use only a small amount of storage, and (ii) query model, where we can structure the data in low space and answer sampling queries. In this paper, we prove the following results in above two settings: - In the streaming setting, we would like to maintain a random sample from the elements seen so far. We prove that one can maintain a random sample using $O(\log n)$ random bits and $O(\log n)$ space, where $n$ is the number of elements seen so far. We can extend this to the case when elements have weights as well. - In the query model, there are $n$ elements with weights $w_1, ..., w_n$ (which are $w$-bit integers) and one would like to sample a random element with probability proportional to its weight. Bringmann and Larsen (STOC 2013) showed how to sample such an element using $nw +1 $ space (whereas, the information theoretic lower bound is $n w$). We consider the approximate sampling problem, where we are given an error parameter $\varepsilon$, and the sampling probability of an element can be off by an $\varepsilon$ factor. We give matching upper and lower bounds for this problem.

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

↑