Notes for DP

BabbleDay posted @ 2013年4月12日 01:32 in 刷题防身 , 809 阅读

http://www.algorithmist.com/index.php/Dynamic_Programming

To avoid calculate the same thing again and again, we save the results and return them later. This is commonly known as memorization (记忆).

There are two types of solution: Bottom Up & Up Bottom.

In general, DP generates all enumerations(枚举), or rather, the smaller breakdown problems, leading towards the larger cases, they eventually lead towards the final enumeration of size n.

Usage:
S1. check if DP is applicable to the problem
S2. recognize the recursive relationshop, whether it is straightforward or hidden, have a pretty good idea of the relationship

Hallmarks:
#1 Optimal substructure:
      an optimal solution to a problem(instance) contains optimal solution to subproblems.
#2 Overlapping subproblem:
      a recursive solution contains a small number of distinct subproblems repeated many times

Avatar_small
NBSE 9th Class Text 说:
2023年9月28日 23:28

Nagaland Board 9th Class Book 2024 for Science, Social Science, English, Hindi, Mathematics, EVS, Various Provide in School Wise Free Distribution in Government School, NBSE High School Various Class Complete Students Do not Waste Summers Holidays, Download Nagaland Board Class Book 2024 Regular Practice new Lessions for Students Best idea Students Method.Nagaland Board Class Textbook 2024 Download NBSE 9th Class Textbook 2024 Available Official Website, Our Portal Provide Nagaland Board High School Books 2024 Download, Hindi Medium, English Medium and Urdu Medium Textbooks.

Avatar_small
jnanabhumiap.in 说:
2024年1月28日 05:50

JNANABHUMI AP provides all the latest educational updates and many more. The main concept or our aim behind this website has been the will to provide resources with full information on each topic jnanabhumiap.in which can be accessed through the Internet. To ensure that every reader gets what is important and worthy about the topic they search and link to hear from us.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter