Replies: 22 comments 1 reply
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
可持久化权值线段树严格意义上来说不是主席树, 主席树更多的是一种算法, 也就是线段树差分, 而不是一个数据结构.
|
Beta Was this translation helpful? Give feedback.
-
能再详细一点解释一下如何查询第k小吗,太菜了想不明白。(现在明白了) |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
应该是因为大括号上一行末尾有行内注释.. |
Beta Was this translation helpful? Give feedback.
-
习题: CF813E |
Beta Was this translation helpful? Give feedback.
-
pr一个( |
Beta Was this translation helpful? Give feedback.
-
可持久化线段树只讲主席树有点少吧......( |
Beta Was this translation helpful? Give feedback.
-
墙裂推荐此讲解视频 |
Beta Was this translation helpful? Give feedback.
-
其实可以再加上可持久化线段树实现可持久化数组吧,毕竟基于可持久化数组的可持久化并查集也是 NOI 考过的知识点。(NOI2018 归程就可以这么做。) |
Beta Was this translation helpful? Give feedback.
-
想請教一下,關於可持久化DSU的部分。我先將我目前理解的部分簡單解釋一下 題目這題應該是n個數值以及m個query,其中query分為三類
主席樹維護DSU的部分
問題
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
有大佬知道为什么,inline int getid(const int &val) { // 离散化 |
Beta Was this translation helpful? Give feedback.
-
可持久化并查集的代码在洛谷TLE。秩是不是应该为集合大小会好点,而不是最大深度。 |
Beta Was this translation helpful? Give feedback.
-
可持久化并查集复杂度错的。 |
Beta Was this translation helpful? Give feedback.
-
求最大最小值没办法用前缀和啊。。。 |
Beta Was this translation helpful? Give feedback.
-
https://oi-wiki.org/ds/persistent-seg/
Beta Was this translation helpful? Give feedback.
All reactions