Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbdbff26

Browse files
authored
Better description of 0/1 knapsack
P.S. Should it be labeled 0/1 Knapsack and not 0-1 Knapsack?
1 parentf1570ff commitbdbff26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/dynamic_programming/intro-to-dp.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ One of the tricks to getting better at dynamic programming is to study some of t
132132
##Classic Dynamic Programming Problems
133133
| Name| Description/Example|
134134
| ----------------------------------------------| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
135-
|[0-1 Knapsack](../dynamic_programming/knapsack.md)| Given $W$, $N$, and $N$items with weights $w_i$ and values $v_i$, what is the maximum $\sum_{i=1}^{k} v_i$ for each subset of items of size $k$ ($1 \le k \le N$) while ensuring $\sum_{i=1}^{k} w_i \le W$?|
135+
|[0-1 Knapsack](../dynamic_programming/knapsack.md)| Given $N$items with weights $w_i$ and values $v_i$ and maximum weight $W$, what is the maximum $\sum_{i=1}^{k} v_i$ for each subset of items of size $k$ ($1 \le k \le N$) while ensuring $\sum_{i=1}^{k} w_i \le W$?|
136136
| Subset Sum| Given $N$ integers and $T$, determine whether there exists a subset of the given set whose elements sum up to the $T$.|
137137
|[Longest Increasing Subsequence (LIS)](../dynamic_programming/longest_increasing_subsequence.md)| You are given an array containing $N$ integers. Your task is to determine the LIS in the array, i.e., a subsequence where every element is larger than the previous one.|
138138
| Counting Paths in a 2D Array| Given $N$ and $M$, count all possible distinct paths from $(1,1)$ to $(N, M)$, where each step is either from $(i,j)$ to $(i+1,j)$ or $(i,j+1)$.|

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp