oursaco's blog

By oursaco, history, 2 months ago, In English

I know that you can extend BIT to do range min/max queries with two BITs, but is it possible to range update while doing min/max queries with BIT.

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

»
2 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Honestly, it might be easier to just use segment tree if it is only range updates with maximum/minimum. It might be much harder to do with Fenwick tree. But, there is probably a method to accomplish that.

»
2 months ago, # |
  Vote: I like it +6 Vote: I do not like it

Yes, you can learn about it here

»
2 months ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

no,i don't think it's possible with BIT.even point update for min/max query is tough/not possible.