Hey, Can we calculate LIS with queries in an online manner ?? I have read about a offline method using DAG but how to process online ?
# | User | Rating |
---|---|---|
1 | tourist | 3985 |
2 | jiangly | 3814 |
3 | jqdai0815 | 3682 |
4 | Benq | 3529 |
5 | orzdevinwang | 3526 |
6 | ksun48 | 3517 |
7 | Radewoosh | 3410 |
8 | hos.lyric | 3399 |
9 | ecnerwala | 3392 |
9 | Um_nik | 3392 |
# | User | Contrib. |
---|---|---|
1 | cry | 169 |
2 | maomao90 | 162 |
2 | Um_nik | 162 |
4 | atcoder_official | 161 |
5 | djm03178 | 158 |
6 | -is-this-fft- | 157 |
7 | adamant | 155 |
8 | awoo | 154 |
8 | Dominater069 | 154 |
10 | luogu_official | 150 |
Hey, Can we calculate LIS with queries in an online manner ?? I have read about a offline method using DAG but how to process online ?
Name |
---|
Auto comment: topic has been updated by adyyy (previous revision, new revision, compare).
If you mean online query is keep pushing at the back of the array, then here they are the implementations
If you only need the size of LIS
if you want to trace back to get the LIS sequence
Of course there are many other ways to solve LIS, and some other ways when you can push front-back and getting the size in $$$O(constant)$$$ or $$$O(polylog)$$$ while taking the LIS sequence can be done with $$$O(n)$$$ or $$$O(n\ log\ n)$$$
This video could be helpful (article is here). Care to elaborate what do you mean by online?
thanks for this resource ||
do you ask about CC november challange unusual queries problem? https://www.codechef.com/NOV20B/problems/UNSQUERS
lol it seems so. They can't even tell the difference with LIS.
Question is still open if it's about (l, r) LIS queries. Are there any sublinear algorithms (mb approximate)?
Umm actually yes but I believe it is just a subpart not the whole thing and obviously long challenges about to gather information I guess !!!
this is my full solution to your problem
why don't you wait for the editorial at the end of contest?