计算机科学 > 数据结构与算法
[提交于 2024年3月8日]
标题:A Sierpinski Triangle Data Structure for Efficient Array Value Update and Prefix Sum Calculation
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Brent Harrison[v1] 2024年3月8日 星期五 00:00:00 UTC