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

filmwalams's gravatar image

5★filmwalams
1.6k113141
accept rate: 7%


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 .

link

answered 18 Jun '14, 13:06

randomizer's gravatar image

4★randomizer
1462311
accept rate: 11%

you should know how to use recursion ..

link

answered 18 Jun '14, 14:00

sanzzzay's gravatar image

2★sanzzzay
7223820
accept rate: 12%

toggle preview
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,212

question asked: 18 Jun '14, 12:14

question was seen: 4,135 times

last updated: 18 Jun '14, 14:00