ITeye博客

Little-Known Awesome Algorithms: Fenwick Trees – Rapidly Find Cumulative Frequen

standalone · 2012-09-28 17:28 · algorithm · 非技术 · Markdown

http://www.swageroo.com/wordpress/little-known-awesome-algorithms-fenwick-range-trees-rapidly-find-cumulative-frequency-sums/

This is to solve range query problems. Questions can be like below

Imagine that we are creating an analytics tool for a financials brokerage, where orders are coming in all the time. Let’s say we’re interested in knowing how many orders fall between a certain value (a range query), in real-time. Lets say that orders can fall between $0.01 and $5M, and we want to let our clients query at any given time how many orders have gone through so far that fall between any $x and $y.

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。