Knapsack type problem

Article catalog preface Follow labuladong to brush the questions and make some notes. The original website link is: link. 1. Classical dynamic programming: 0-1 knapsack problem Give you a backpack with a weight of W and N items. Each item has two attributes: weight and value. The weight of the ith item is wt[i] and the value is val[i]. ...

Added by Kower on Thu, 18 Nov 2021 04:32:33 +0200

[learning notes of algorithm competition] Game Theory -- SG function and classical problems

title: Game Theory (II) date : 2021-11-6 Tags: ACM, mathematics, game theory author : Linno Pre cheese - SG function You can see my last blog: https://blog.csdn.net/SC_Linno/article/details/121181361 Firstly, an ICG game model is given. Given a directed acyclic graph and a piece on a starting vertex, two players alternately move the piec ...

Added by kof20012 on Wed, 17 Nov 2021 07:05:52 +0200

[Problem Solving Report] Active Thought Training 4 | CF Number Theory 2000+ | Top 6 Questions

Complement field, collect 2000+ questions of some missing math theories submitted in high numbers. A: SUM and REPLACE | CF 920F meaning of the title SUM and REPLACE | CF 920F Given length is n n Sequence of n ...

Added by alex.saidani on Fri, 12 Nov 2021 19:58:46 +0200

Zhejiang University of Technology Freshman Competition E DD_2020 BOND Buy Cyberpunk 2077

Note: This article is still in the EA stage and needs to be corrected and improved urgently Last updated: 2021/11/10 0:17 Note: The code in this article can be AC, but the explanation may be incorrect. The idea is for reference only. Dynamic Planning + Segment Tree Reference resources: https://blog.csdn.net/qq_39641976/article/details/1 ...

Added by ASDen on Tue, 09 Nov 2021 19:26:54 +0200

Algorithmic Job, 01 Backpack, 2-D Backpack, Coin Problem

Preface This is a job in the process of learning algorithm analysis and design. The main purpose of this job is to clarify the problems of this job and some personal thinking. This article does not explain why to design dynamic planning algorithms like this. (Four steps to consider, etc.) I am a student. I published an article for the ...

Added by xsist10 on Mon, 08 Nov 2021 19:42:23 +0200

Dynamic Programming summary

Made a part of the topic of dynamic compression to sort out and summarize. (just from the perspective of beginners, there are still many deficiencies and deficiencies. I also hope that all great gods can make corrections and add new dp problems in the future (っ) Д °;)っ) Dynamic programming is mainly used to solve the problem of optimal ...

Added by kvishnu_13 on Fri, 29 Oct 2021 16:43:39 +0300

All pears (greed + dp)

problem There are many near toyosaki School Park n n n stores, at the moment 0 0 At 0:00, Yingli started shopping from the school park. It takes time to walk from the school park ...

Added by mewright on Fri, 29 Oct 2021 14:03:52 +0300

[naval International Program Office] Zhu Guosha

Zhu Guosha Problem solution Why are there always * * questions? People like to name the questions with the names of some cancer questions. It's easy to think of passing this kind of question d p dp dp to transfer it. Let's first conside ...

Added by gasper000 on Thu, 28 Oct 2021 02:33:03 +0300

Chapter III Review and summary of dynamic planning

1, Four basic steps of dynamic planning:   2, Common methods of dynamic programming:   (1) Bottom up solution:          The most common dp algorithm derives the optimal solution of the problem with the second smaller scale from the initial value of dp, records it in the array, and then cont ...

Added by stereofrog on Wed, 27 Oct 2021 06:49:09 +0300

Dynamic programming (js version)

1. Introduction to dynamic programming algorithm Understand dynamic programming ~ know a good article LeetCode's simple dynamic programming problem: Fibonacci numberclimb stairsClimb stairs with minimum costDifferent pathsDifferent paths II Summary: Dynamic programming is not so much an algorithm as a methodology. The methodology is mai ...

Added by tonbah on Sun, 24 Oct 2021 18:27:17 +0300