Not Frequent
0/9
Range Queries with Sweep Line
Authors: Benjamin Qi, Andi Qu
Solving 2D grid problems using 1D range queries.
Focus Problem – read through this problem before continuing!
Focus Problem – read through this problem before continuing!
Tutorial
This section is not complete.
Feel free to file a request to complete this using the "Contact Us" button.
Solution - Intersection Points
This section is not complete.
Feel free to file a request to complete this using the "Contact Us" button.
Solution - Springboards
This section is not complete.
Feel free to file a request to complete this using the "Contact Us" button.
The problem boils down to having a data structure that supports the following operations:
- Add a pair .
- For any , query the minimum value of over all pairs satisfying .
The other module describes a simpler way of doing this, though it's probably more straightforward to do coordinate compression and use a min segtree. The latter approach is shown below.
1/**2 * Description: 1D point update, range query where \texttt{comb} is3 * any associative operation. If $N=2^p$ then \texttt{seg[1]==query(0,N-1)}.4 * Time: O(\log N)5 * Source:6 * http://codeforces.com/blog/entry/180517 * KACTL8 * Verification: SPOJ Fenwick9 */10
Problems
Status | Source | Problem Name | Difficulty | Tags | Solution |
---|---|---|---|---|---|
HE | Easy | Show Sketch | |||
Plat | Normal | Show TagsPURQ | External Sol | ||
CSES | Hard | Show TagsPURQ | View Solution | ||
IZhO | Hard | View Solution |
Relating to LIS:
Status | Source | Problem Name | Difficulty | Tags | Solution |
---|---|---|---|---|---|
Balkan OI | Hard | Show TagsDP, BIT | External Sol | ||
COCI | Hard | Show TagsDP, BIT | External Sol | ||
Plat | Very Hard | Show TagsDP | External Sol |
Module Progress:
Give Us Feedback on Range Queries with Sweep Line!
Join the Discussion!
Feel free to voice your thoughts in the comments section.