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

Автор OmarNabill, история, 3 года назад, По-английски

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

Полный текст и комментарии »

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