当前位置:网站首页>What is dynamic programming and what is the knapsack problem
What is dynamic programming and what is the knapsack problem
2022-08-01 03:39:00 【fK0pS】
What is dynamic programming and what is the knapsack problem
Dynamic programming (DP) is a method used in mathematics, management science, computer science, economics, and bioinformatics to solve a problem by breaking it down into relatively simple sub-problemsapproach to complex problems.
Compared with the greedy strategy, it will calculate the cost of taking 1, 5, and 11 respectively, so as to make a correct decision, thus avoiding "short-sightedness"!
13,000 likes, very detailed explanation:
What is dynamic programming(Dynamic Programming)?What is the meaning of dynamic programming?- Know

The dp dynamic programming problem has an important feature,
1, is: "the future has nothing to do with the past", which is no aftereffects.
2. Optimal substructure;

The core of the DP algorithm is to reduce the solution space as much as possible according to the topic:
The core idea of DP: Minimize the possible solution space as much as possible
Backpack problem:

A typical example of dynamic programming;


边栏推荐
- New York University et al | TM-Vec: Template Modeling Vectors for Rapid Homology Detection and Alignment
- Parse the bootargs from the device tree (dtb format data)
- 解决IDEA默认情况下新建文件时,右击,new,没有XML文件的问题
- leetcode6132. Make all elements in an array equal to zero (simple, weekly)
- The 16th day of the special assault version of the sword offer
- 软考高级系统架构设计师系列之:系统开发基础知识
- 2022 CSP-J1 CSP-S1 Round 1 Preliminary Competition Registration Guide
- Input输入框光标在前输入后自动跳到最后面的bug
- Four implementations of
batch insert: have you really got it? - IDEA调试
猜你喜欢

设备树的树形结构到底是怎样体现的?

"Youth Pie 2": The new boyfriend stepped on two boats, and the relationship between Lin Miaomiao and Qian Sanyi warmed up

MYSQL Classic Interview Questions

对无限debugger的一种处理方式

如何下载Keil包

【uniCloud】云对象的应用与提升

MYSQL query interception optimization analysis

预言机简介

ARM cross compilation

New York University et al | TM-Vec: Template Modeling Vectors for Rapid Homology Detection and Alignment
随机推荐
Simple vim configuration
Unity在BuildIn渲染管线下实现PlanarReflection的初级方法
win10 fixed local IP
Nmap manuals - the full version
Soft Exam Senior System Architect Series: Basic Knowledge of Information Systems
MYSQL Index Analysis
修改Postman安装路径
Open source project site must-have & communication area function
普通用户无法访问hgfs目录
787. 归并排序
指定set 'execution.savepoint.path'后,重启flinksql报这个错是啥
MYSQL transactions
[Search topic] After reading the inevitable BFS solution to the shortest path problem
初出茅庐的小李第112篇博客项目笔记之机智云智能浇花器实战(1)-基础Demo实现
By CSDN, torn
【 Make YOLO Great Again 】 YOLOv1 v7 full range with large parsing (Neck)
Flink deploys and submits jobs
MYSQL two-phase commit
The 16th day of the special assault version of the sword offer
The bigger and bigger the project is, I split it like this