Informatik

Was ist ein Fenwick-Baum?

Ein Fenwick-Baum (Binary Indexed Tree) unterstützt Präfixsummen und Punktupdates in O(logn)O(\log n).

Er braucht nur ein Array und ist oft einfacher als ein Segmentbaum.