当前位置:网站首页>On dynamic programming
On dynamic programming
2022-06-25 21:14:00 【Rabbit cloud program】
Concept
Dynamic programming (Dynamic Programming,DP) It is the process of solving the optimization of decision-making process . A method of solving complex problems by decomposing the original problem into relatively simple subproblems . In the backpack problem 、 Production and operation problems 、 Money management issues 、 The allocation of resources 、 The shortest path problem and the reliability problem of complex systems are widely used .
In my student days acm competition , Is a required algorithm topic , It is also the algorithm question that appears most frequently in the interview of large technology companies , Many types of topics , No fixed template , Very flexible , It's hard to think , The difficulty is in the upper middle , There is no obvious routine .
In fact, learn dynamic planning well , It's not just about mastering the algorithm model , And for ourselves , Use a dynamic planning idea to deal with our own affairs and problems , Or you can put this idea into your life , Put it in your frustration , Very skillful and interesting , If you have this in mind , It's a lot easier .
Algorithm implementation description
Dynamic algorithm and divide and conquer algorithm , The recursive algorithm is similar to , The basic idea is to decompose the problem to be solved into several sub problems , First solve the subproblem , Then the solution of the original problem is obtained from the solution of these subproblems . What's different from divide and conquer is , The decomposed subproblems are not independent of each other , Some subproblems are interdependent , Repeat the calculation to solve . It depends on whether the problem can be solved by dynamic programming .
Three elements
The stage of the problem
The state of each phase
The recursive relationship between the previous stage and the later stage .
The recurrence relation must be transformed from the problem with small order to the problem with large order , So dynamic programming can be solved by recursion .
The whole solving process can be described by an optimal decision table , The optimal decision table is a two-dimensional table , Where the line represents the stage of the decision , The list shows the status of the problem , Form needs
边栏推荐
- HMS core actively explores the function based on hardware ear return, helping to reduce the overall singing delay rate of the singing bar by 60%
- Bank digital transformation layout in the beginning of the year, 6 challenges faced by financial level structure and Countermeasures
- What is an app circle of friends advertisement
- UDP Vs TCP (Powercert animated videos)
- Section 13: simplify your code with Lombok
- OLED driver learning based on ssd1306 (I): SSD Chinese command table (handling)
- Ensure the decentralization and availability of Oracle network
- Idea implements hot deployment
- 05 configuring network parameters
- Yolov4 reading notes (with mind map)! YOLOv4: Optimal Speed and Accuracy of Object Detection
猜你喜欢
[data recovery in North Asia] a data recovery case in which the upper virtual machine data is lost due to the hard disk failure and disconnection of raid6 disk array

Illustrated with pictures and texts, 700 pages of machine learning notes are popular! Worth learning
Uncover n core 'black magic' of Presto + alluxio

js (1)

Differences between modems and routers (powercert animated videos)
This is a simple and cool way to make large screen chart linkage. Smartbi will teach you

Get parameters in URL

OLED driven learning based on ssd1306 (II): addressing mode of ssd1306
Yunzhisheng atlas supercomputing platform: computing acceleration practice based on fluid + alluxio (Part 2)

Jingxi Pinpin wechat applet -signstr parameter encryption
随机推荐
SaaS privatization deployment scheme
R language momentum and Markowitz portfolio model implementation
Win10 common software
Compile 6relayd using the cross compiler
The SH runtime directly reported an error syntax error near unexpected token ` $'. \r‘
Decryption of APP parameters of a cross-border export e-commerce - dunhuang.com
Shell scripts: Variables
Rounding related calculation
2022年启牛学堂证券开户安全嘛?
Analysis and cleaning of kdevtmpfsi virus content
Record some questions about MySQL (DNS reverse resolution in Linux)
After 20 days' interview, I finally joined Ali (share the interview process)
Instant aesthetics of the Centennial Olympic Games: beauty in the air, condensed in minutes and seconds - Alibaba cloud video cloud AI editorial department "cloud smart scissors"
What is DNS (domain name server)? (Powercert animated videos)
8 minutes to understand the wal mechanism of tdengine
[nailing scenario capability package] video conference (official conference system)
OLED driver learning based on ssd1306 (I): SSD Chinese command table (handling)
Day 29/100 local SSH password free login to remote
Patrol script
Install JDK, MySQL and nexus under Linux (tar package installation)