Ewwa's blog

By Ewwa, history, 8 years ago, In English

I followed this post http://codeforces.me/blog/entry/18051 to learn segment tree and I really like the implementation, but can't figure out how to implement fractional cascading. Any idea ?

  • Vote: I like it
  • +5
  • Vote: I do not like it

»
8 years ago, # |
  Vote: I like it +5 Vote: I do not like it

from my experience, segment trees with fractional cascading are somehow not faster than usual segment trees. Use persistent ones.