This repository has been archived on 2022-06-22. You can view files and clone it, but cannot push or open issues or pull requests.
usaco-guide/content/5_Gold/PURQ.md
2020-06-22 10:26:06 -04:00

2.1 KiB

id title author prerequisites description
PURQ 1D Point Update Range Query Benjamin Qi
Gold - Point Update Range Sum
General range queries for associative operations with segment tree.

A segment tree allows you to do point update and range query in O(\log N) time each for any associative operation. Historically, no gold problem has required the use of a segment tree in place of a binary indexed tree, but it's still good to know (and you might find it simpler).

Tutorials

Problems

Can try solving some of the BIT questions w/ segtree.