一种用于高效数组值更新与前缀和计算的谢尔宾斯基三角数据结构
A Sierpinski Triangle Data Structure for Efficient Array Value Update and Prefix Sum Calculation
AI总结:
本研究提出形似谢尔宾斯基三角的新型数据结构,在内存占用与Fenwick树相同的情况下,将数组值更新和前缀和计算的时间复杂度从$O(\log_2 N)$降至最优的$O(\log_3 N)$。
摘要:
二叉索引树(又称Fenwick树)是一种可高效更新数组值并计算前缀和的数据结构,支持这两种操作在$O(\log_2 N)$时间内完成。本文提出一种形似谢尔宾斯基三角(Sierpinski triangle)的新型数据结构,在相同内存占用下,可将上述操作的时间复杂度降至$O(\log_3 N)$。我们借助与量子计算的关联,证明该时间阶是最优的。
英文摘要:
The binary indexed tree, or Fenwick tree, is a data structure that can efficiently update values and calculate prefix sums in an array. It allows both of these operations to be performed in $O(\log_2 N)$ time. Here we present a novel data structure resembling the Sierpinski triangle, which accomplishes these operations with the same memory usage in $O(\log_3 N)$ time instead. We show this order to be optimal by making use of a connection to quantum computing.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。