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

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

Recently, I have been searching for some articles about "Smaller to larger" technique on Google, but ended up finding nothing really useful (only the first 2 pages mention about it but they are all about Sack(dsu on tree) :> ...).

So could you guys show me some good documents about that technique and provide me as many as problems you guys have come across during your coding journey? <3

P/s: or share your way of understanding and applying this technique, if you could <3.

Thanks so much and have a great day <3.

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

»
5 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится
  • »
    »
    5 лет назад, # ^ |
    Rev. 2   Проголосовать: нравится +3 Проголосовать: не нравится

    Can you suggest anything else? Because that article doesn't focus on explaining the smaller_to_larger I think.

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

Nobody can help me ? :(

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

What exactly don't you understand?

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

Some people call this technique Sack or dsu on tree. Arpa's blog doesn't explain the technique but shows some ways to code it. I think people that don't know HLD may have a hard time understanding why the technique is fast.

Try to understand the codes, there are also a bunch of questions answered on comments.

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

Do you think dsu on tree and Smaller to larger is not the same :>

About my way of understand → ><