Open ei1333 opened 2 years ago
src/data-structure/decremental-set.hpp
- A = {1, 2, ..., n} で初期化- A ← A \ {i} を O(1)- min { x ∈ A | x > i } を O(1)ならギリ需要ありそう— 寝る (@noshi91) May 2, 2021
- A = {1, 2, ..., n} で初期化- A ← A \ {i} を O(1)- min { x ∈ A | x > i } を O(1)ならギリ需要ありそう
static LCA 実装軽いかなと思ったらあんまり軽くはならなくてヘラヘラしていたんだけど、こっから更に実装重くして α(N) 落とす理由あるか?
このライブラリに線形RMQをふくめるかとかにもよりそう
SAISはあってもよさそうだけど
[data-structure] Decremental Set
file name
src/data-structure/decremental-set.hpp
TODO
note
16 を $O(N + Q)$ にするために必要