Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

“1.2 基本思路”中没有考虑V<C_i的情况 #4

Open
draplater opened this issue Jul 11, 2016 · 3 comments
Open

“1.2 基本思路”中没有考虑V<C_i的情况 #4

draplater opened this issue Jul 11, 2016 · 3 comments

Comments

@draplater
Copy link

“1.2 基本思路”中,伪代码内层循环用的是

for v ← C_i to V

因为这里还没有提到优化空间复杂度,用的是二维数组,所以当 V<C_i 时,要把 F [i − 1, v] 复制到 F [i, v]。

@pinkfloyda
Copy link

我今天也看到这个问题,想了好久发现这个不适合2维数组的情况,2维的内循环应该是 for v <- 1 to V

@lucheng2
Copy link

lucheng2 commented May 2, 2021

赞同,我按照二维的写WA了,手推了下过程才发现问题所在。

@zZer0o
Copy link

zZer0o commented Aug 7, 2021

的确如此

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants