加权输入下Greenwald-Khanna流分位数求和的推广
Generalizing Greenwald-Khanna Streaming Quantile Summaries for Weighted Inputs
摘要:
估计分位数,如中位数或分位数,是数据采掘和数据科学中的一项基本任务。(流式)分位数摘要是一种数据结构,其可以以流式方式处理n个元素的集合S,并且在最后,对于(0,1]中的任何phi,返回S的phi分位数直到eps错误,即,返回一个phi '-分位数,其中phi'= phi +- eps。我们特别感兴趣的是基于比较的总结,这些总结只比较了全序下的宇宙元素,否则就完全忽略了宇宙。最著名的确定性分位数摘要是20年前的Greenwald-Khanna(GK)摘要,它使用O((1/eps)log(eps n))空间[SIGMOD'01]。这个界限最近被证明是最佳的所有确定性的比较为基础的总结Cormode和Veslewald [PODS'20]。在本文中,我们研究加权分位数,一个推广的分位数问题,其中每个元素到达一个正整数的权重表示该元素的副本被插入的数量。通过GK摘要处理加权输入的唯一已知方法是将每个加权元素分解为多个未加权项目并将其逐个馈送到摘要的天真方法,这导致了非常大的更新时间(与输入元素的最大权重成比例)。我们给出了第一个非平凡的扩展GK摘要加权输入,并表明它需要O((1/eps)log(eps n))空间和O(log(1/eps)+ log log(eps n))更新时间每个元素来处理长度为n的流(在一些相当温和的假设范围内的权重和eps)。在此过程中,我们还简化了未加权分位数的原始GK摘要。
英文摘要:
Estimating quantiles, like the median or percentiles, is a fundamental task in data mining and data science. A (streaming) quantile summary is a data structure that can process a set S of n elements in a streaming fashion and at the end, for any phi in (0,1], return a phi-quantile of S up to an eps error, i.e., return a phi'-quantile with phi'=phi +- eps. We are particularly interested in comparison-based summaries that only compare elements of the universe under a total ordering and are otherwise completely oblivious of the universe. The best known deterministic quantile summary is the 20-year old Greenwald-Khanna (GK) summary that uses O((1/eps) log(eps n)) space [SIGMOD'01]. This bound was recently proved to be optimal for all deterministic comparison-based summaries by Cormode and Vesleý [PODS'20]. In this paper, we study weighted quantiles, a generalization of the quantiles problem, where each element arrives with a positive integer weight which denotes the number of copies of that element being inserted. The only known method of handling weighted inputs via GK summaries is the naive approach of breaking each weighted element into multiple unweighted items and feeding them one by one to the summary, which results in a prohibitively large update time (proportional to the maximum weight of input elements). We give the first non-trivial extension of GK summaries for weighted inputs and show that it takes O((1/eps) log(eps n)) space and O(log(1/eps)+ log log(eps n)) update time per element to process a stream of length n (under some quite mild assumptions on the range of weights and eps). En route to this, we also simplify the original GK summaries for unweighted quantiles.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。