Блог пользователя dx24816

Автор dx24816, история, 6 лет назад, По-английски

Hello,

Recently, I've been learning about the persistent segment tree. However, is there a way to get a persistent segment tree with range updates, and not just point updates? If so, can someone direct me to a clean and easy implementation in C++? Thanks!

-dx24816

  • Проголосовать: нравится
  • +6
  • Проголосовать: не нравится

»
6 лет назад, # |
  Проголосовать: нравится +41 Проголосовать: не нравится

If you're talking about persistent lazy propagation, it's obviously possible. Once you understand the concept, you'll see that it's not really different. You'd just have to use more memory and the implementation would be a bit harder.

»
6 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Here is the explanation with some code: Persistent Lazy Propagation