You are not logged in. Please login at www.codechef.com to post your questions!

×

# Dynamic Programming prerequisites?

 0 1 What all things I have to learn first before starting dynamic programming. I know data structures, but I don't know applying divide and conquer,greedy etc.. Please help. Can I start DP directly? asked 18 Jun '14, 12:14 1.6k●11●31●41 accept rate: 7%

 1 you can start by Dynamic Programming , See dynamic programming relies on realizing what the smaller instance of problem is , A solution is built upon previously computed solutions of smaller instance of the same problem you should know how can you apply divide and conquer strategy for a particular problem . Greedy simply means an algorithm that picks the most optimal choices first many greedy algorithm will benefit from dynamic programming approach . So you can start DP directly basic idea DP is very easy , but it takes many years of practice to master it . answered 18 Jun '14, 13:06 146●2●3●11 accept rate: 11%
 1 you should know how to use recursion .. answered 18 Jun '14, 14:00 2★sanzzzay 722●3●8●20 accept rate: 12%
 toggle preview community wiki:
Preview

### Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• link:[text](http://url.com/ "title")
• image?![alt text](/path/img.jpg "title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported
• mathemetical formulas in Latex between \$ symbol

Question tags:

×2,214

question asked: 18 Jun '14, 12:14

question was seen: 4,140 times

last updated: 18 Jun '14, 14:00