OmarNabill's blog

By OmarNabill, history, 3 years ago, In English

After searching a lot about how to start studying Dynamic Programming and what are the important topics that I should study and how to practice on them, I found that:

1. Way practice DP

1. Recursion — a procedure that contains a procedure call to itself or a procedure call to a second procedure which eventually causes the first procedure to be called is known as a recursive procedure.

2. Iterative

  • the other hand, uses looping in order to execute a set of statements multiple times. A given problem can be solved both by recursion as well as iteration, however, they have certain important differences as well.

3. Memoization

  • Memoization is a way to potentially make functions that use recursion run faste a recursive function might end up performing the same calculation with the same input multiple times. This means it could end up taking longer than the iterative alternative.A memoization function allows us to store input alongside the result of the calculation. Therefore, rather than having to do the same work again using the same input, it can simply return the value stored in the cache.

2. resources to practice DP

  1. https://atcoder.jp/contests/dp/tasks

  2. https://vjudge.net/group/icpcassiutjunuiorsphase2

3. Content Flow

1. Basic problems

2. 1d Array

3. 2d array

4. Strings

5. Counting

6. Breaking And partition

7. Mathematical problem

8. Stundard problem

9. Dp with tree
1. https://www.youtube.com/watch?v=fGznXJ-LTbI&list=PLb3g_Z8nEv1j_BC-fmZWHFe6jmU_zv-8s
2. https://www.youtube.com/watch?v=38yRq24Zpu4

10. Dp with bitmasks
1. https://www.youtube.com/watch?v=rlTkd4yOQpE 2. https://www.youtube.com/watch?v=8HOIj0RgcCU

In the end, I hope that you liked the blog and benefited from it, and I hope that there are no mistakes in it. I know that there are many things in the DP that I did not talk about, but this is what I reached until this moment. If I notice that the blog is liked by many of you, I will continue writing such as These blogs and on various topics such as Graph and Tree

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

| Write comment?
»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

I have just started competitive programming. I think this would help me to get started with Dynamic Programming. Is there a way to mark this blog for future reference?

  • »
    »
    3 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    In the bottom, beside the option to upvote & downvote there is an option to star(basically, it will add to your favourites for future reference). Hope it may help!