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

relocated lis to dp section/add redirect + add relevant links to intro-to_dp#1457

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
mhayter wants to merge11 commits intocp-algorithms:main
base:main
Choose a base branch
Loading
frommhayter:relocate_lis

Conversation

mhayter
Copy link
Contributor

Did I do this right?

@mhaytermhayter changed the titlerelocated lis to dp section/add redirectrelocated lis to dp section/add redirect + add relevant links to intro-to_dpApr 24, 2025
@mhayter
Copy link
ContributorAuthor

This technically works but probably the links should be edited to be relative as it won't work exactly correctly with absolute links, but I'm dumb and can't figure it out.

Copy link
Member

@adamant-pwnadamant-pwn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thanks! Let's cleanup the links a bit.

@@ -132,9 +132,9 @@ One of the tricks to getting better at dynamic programming is to study some of t
## Classic Dynamic Programming Problems
| Name | Description/Example |
| ---------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 0-1 Knapsack | 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$? |
|[0-1 Knapsack](https://cp-algorithms.com/dynamic_programming/knapsack.html) | 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$? |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
|[0-1 Knapsack](https://cp-algorithms.com/dynamic_programming/knapsack.html)| 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$?|
|[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$?|

| Subset Sum | Given $N$ integers and $T$, determine whether there exists a subset of the given set whose elements sum up to the $T$. |
| Longest Increasing Subsequence (LIS) | 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. |
|[Longest Increasing Subsequence (LIS)](https://cp-algorithms.com/dynamic_programming/longest_increasing_subsequence.html) | 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. |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
|[Longest Increasing Subsequence (LIS)](https://cp-algorithms.com/dynamic_programming/longest_increasing_subsequence.html)| 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.|
|[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.|

@@ -143,7 +143,7 @@ One of the tricks to getting better at dynamic programming is to study some of t
| Edit Distance | The edit distance between two strings is the minimum number of operations required to transform one string into the other. Operations are ["Add", "Remove", "Replace"] |

## Related Topics
* Bitmask Dynamic Programming
*[Bitmask Dynamic Programming](https://cp-algorithms.com/dynamic_programming/profile-dynamics.html)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
*[Bitmask Dynamic Programming](https://cp-algorithms.com/dynamic_programming/profile-dynamics.html)
*[Bitmask Dynamic Programming](../dynamic_programming/profile-dynamics.md)

@@ -63,6 +63,7 @@ search:
- Dynamic Programming
- [Introduction to Dynamic Programming](dynamic_programming/intro-to-dp.md)
- [Knapsack Problem](dynamic_programming/knapsack.md)
- [Longest increasing subsequence](dynamic_programming/longest_increasing_subsequence.md)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Unless we very deliberately want it to occur in two sections, we should also remove it from Miscellaneous/Sequences.

e_maxx_link: longest_increasing_subseq_log
---

<meta http-equiv="refresh" content="0; url=/dynamic_programming/longest_increasing_subsequence.html">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
<metahttp-equiv="refresh"content="0; url=/dynamic_programming/longest_increasing_subsequence.html">
<metahttp-equiv="refresh"content="0; url=../dynamic_programming/longest_increasing_subsequence.html">

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@adamant-pwnadamant-pwnadamant-pwn requested changes

Requested changes must be addressed to merge this pull request.

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@mhayter@adamant-pwn

[8]ページ先頭

©2009-2025 Movatter.jp