Replies: 14 comments 1 reply
-
CDQ和树套树的关系怎么说。。 |
Beta Was this translation helpful? Give feedback.
-
树套树是模拟整个过程,而CDQ是判断整个过程。树套树空间大,CDQ空间小。树套树强制在线,CDQ离线。树套树有一定的范围,而CDQ的范围是你单个变量的最大值 (如 int64) |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
太棒了,讲得很清楚,网上的资料参差不齐,当初学的时候只学了第一种,但总觉得未理解,现在才搞清楚 |
Beta Was this translation helpful? Give feedback.
-
这个 markdown 是咋得了? |
Beta Was this translation helpful? Give feedback.
-
@yzy-1 可以截图描述一下你的问题吗 |
Beta Was this translation helpful? Give feedback.
-
为什么是三类不应该是四类吗? |
Beta Was this translation helpful? Give feedback.
-
还有啊,三维偏序是三个属性吧qwq |
Beta Was this translation helpful? Give feedback.
-
这里的三个属性相当于是 i,a_i,b_i 吧 |
Beta Was this translation helpful? Give feedback.
-
一般的cdq分治应该可以优化到nlogn吧 solve(l, r)最后的sort可以归并O(n)处理 |
Beta Was this translation helpful? Give feedback.
-
城市建设那道题的解题思路中“对于一条边来讲”之下分出了两种情况,其中负无穷(第二种情况)中“而他未出现在树中”似乎应当改为“而他出现在了树中” |
Beta Was this translation helpful? Give feedback.
-
“被称之为”是不是有语病 |
Beta Was this translation helpful? Give feedback.
-
现在在学 NLP,逛大佬陈丹琦 homepage 的时候无意间翻到论文,才知道当初学的 CDQ 分治就是她本人。。。跪了 |
Beta Was this translation helpful? Give feedback.
-
CDQ可以用图的进行理解:
|
Beta Was this translation helpful? Give feedback.
-
https://oi-wiki.org/misc/cdq-divide/
Beta Was this translation helpful? Give feedback.
All reactions