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

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

Hello, CF community.

I am starting to write about algorithms for fun and to spread the knowledge. Please read my new article about sparse table – a cute data structure to find range minimums in an array:

http://adilet.org/blog/sparse-table/

P.S. A little bit about myself: I was active in the competitive programming a while ago, especially during my two ACM ICPC World Finals in 2014 and 2015. Currently, I am working for Google and trying to revive some old algorithms knowledge :)

Would you be interested in the future algorithm articles like this? Follow me on twitter here: twitter.com/adiletzx

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

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

I can't find tutorials of other algos in your blog, They used to be there sometime back. will you please restore them?

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

    Hi! I didn't really have any other algorithm tutorials in my blog. Maybe you are thinking about my collection of algorithm implementations. I used to have it partially on my website, but now it's all on GitHub.

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

The Explanation is fairly Lucid and easy to comprehend, Thank You!

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

The tutorial was very helpful & easy to understand.Thank you very much :)

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

The tutorial was presented very nicely. It would be very helpful if you write more such blogs.

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

Waiting For other Tutorials too

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

what do you do if 2^i+j is greater than the length of your array?

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

    Not sure where you are coming from, but you iterate $$$i$$$ only up to $$$ \left \lfloor{log(n)}\right \rfloor $$$, and also you iterate $$$i$$$ and $$$j$$$ such that the range is never beyond the array. Please take one more look at the code :)

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

Quality content! Thanks for the blog