Загрузка страницы

Fenwick Tree (Binary Index Tree) - Quick Tutorial and Source Code Explanation

In this tutorial we’ll discuss a computer science data structure called "Fenwick Tree", also known as "Binary Index Tree". This data structure is used to efficiently perform range queries, such as addition, multiplication and XOR. We’ll develop a simple visual explanation of how it works. Then, we’ll dive into the details of how to actually implement it by walking over source code of sum() and update() functions, which run in O(log n) time complexity. Finally, we'll discuss the source code of an algorithm that efficiently populates Binary Index Trees with data in O(n) running time.

Full source code implementation of Fenwick Tree in Java:
https://bitbucket.org/StableSort/play/src/master/src/com/stablesort/fenwick/FenwickTree.java

The paper by Peter Fenwick: http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.14.8917&rep=rep1&type=pdf

Wikipedia: https://en.wikipedia.org/wiki/Fenwick_tree

Written and narrated by Andre Violentyev

Видео Fenwick Tree (Binary Index Tree) - Quick Tutorial and Source Code Explanation канала Stable Sort
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
10 января 2020 г. 0:58:42
00:09:28
Яндекс.Метрика