Optimal Biweighted Binary Trees and the Complexity of Maintaining Partial Sums

  • Authors:
  • Haripriyan Hampapuram;Michael L. Fredman

  • Affiliations:
  • -;-

  • Venue:
  • SIAM Journal on Computing
  • Year:
  • 1999

Quantified Score

Hi-index 0.00

Visualization

Abstract

Let A be an array. The partial sum problem concerns the design of a data structure for implementing the following operations. The operation update (j,x) has the effect $A[j] \leftarrow A[j]+x \,$, and the query operation $\ssum(j)$ returns the partial sum $\sum_{i=1}^j \, A[i] \,$. Our interest centers upon the optimal efficiency with which sequences of such operations can be performed, and we derive new upper and lower bounds in the semigroup model of computation. Our analysis relates the optimal complexity of the partial sum problem to optimal binary trees relative to a type of weighting scheme that defines the notion of biweighted binary tree.