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

简洁部分和与Fenwick树

Succinct Partial Sums and Fenwick Trees

Philip Bille, Anders Roy Christiansen, Nicola Prezza, Frederik Rye Skjoldjensen

摘要:

我们认为,在简洁的空间,其中一个是保持一个数组的n k位整数更新,使部分和查询可以有效地回答研究部分和问题。我们提出了两个简洁版本的芬威克树-这是众所周知的简单性和实用性。我们的结果在编码模型中成立,其中允许从输入数据中重用空间。我们的主要结果是第一个只需要nk + o(n)位的空间,同时仍然支持O(log_b n)/ O(b log_b n)时间的求和/更新,其中2 <= b <= log^O(1)n。第二个结果示出了如何在仅将空间使用略微增加到nk + o(nk)位的同时实现求和/更新的最佳时间。除了Fenwick树之外,结果主要基于位打包和采样-这使得它们非常实用-并且它们还允许简单的最佳并行化。

英文摘要:

We consider the well-studied partial sums problem in succint space where one is to maintain an array of n k-bit integers subject to updates such that partial sums queries can be efficiently answered. We present two succint versions of the Fenwick Tree - which is known for its simplicity and practicality. Our results hold in the encoding model where one is allowed to reuse the space from the input data. Our main result is the first that only requires nk + o(n) bits of space while still supporting sum/update in O(log_b n) / O(b log_b n) time where 2 <= b <= log^O(1) n. The second result shows how optimal time for sum/update can be achieved while only slightly increasing the space usage to nk + o(nk) bits. Beyond Fenwick Trees, the results are primarily based on bit-packing and sampling - making them very practical - and they also allow for simple optimal parallelization.

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

↑