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

Автор VMaksimoski008, история, 12 месяцев назад, По-английски

I already know how to compute the LIS of an array using a Segment Tree. I've read different materials from different sources

on how to do this, but I've never encountered how to find LIS when the array is muatble. For example, if the array was

[1, 3, 2, 10], then the leaf nodes in the Segment Tree would look like [1, 2, 2, 3].

But if we have a query (pos = 0, new_val = 12), the array would be [12, 3, 2, 10],

and the tree leaf nodes are going to be [1, 1, 1, 2].


Thanks in advance!

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

»
12 месяцев назад, # |
  Проголосовать: нравится -7 Проголосовать: не нравится

Does anyone have an idea?

»
12 месяцев назад, # |
Rev. 3   Проголосовать: нравится +5 Проголосовать: не нравится

this problem >2600* bcz its strictly harder than 650D

but 650D's sol is useless for this problem

sry i cant solve it i will try tmr