English

A Sierpinski Triangle Data Structure for Efficient Array Value Update and Prefix Sum Calculation

Data Structures and Algorithms 2024-03-08 v1

Abstract

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(log2N)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(log3N)O(\log_3 N) time instead. We show this order to be optimal by making use of a connection to quantum computing.

Keywords

Cite

@article{arxiv.2403.03990,
  title  = {A Sierpinski Triangle Data Structure for Efficient Array Value Update and Prefix Sum Calculation},
  author = {Brent Harrison and Jason Necaise and Andrew Projansky and James D. Whitfield},
  journal= {arXiv preprint arXiv:2403.03990},
  year   = {2024}
}

Comments

8 pages, 4 figures

R2 v1 2026-06-28T15:11:27.974Z