logo
首页技术栈工具库讨论
binary-indexed-tree

binary-indexed-tree

Binary indexed trees are a data structure on indexes 1 through n. They allow you to compute the sum of all values at indexes 1 through i in O(logn) and to increase the value at index i in O(logn). This implements binary indexed trees, both as an immutable data structure in pure code and as a mutable data structure using the ST Monad. Both the immutable and mutable version have the same runtime complexity, but the mutable version has a smaller constant. Written by Maxwell Sayles (2012).
由 
bruceshi2021-01-13 收录
--
推荐
不推荐
更多信息
HACKAGE
carbal install binary-indexed-tree
查看
标签
根据用户添加的标签生成
暂无标签