Replies: 14 comments 1 reply
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment has been minimized.
This comment has been minimized.
-
朴素多重背包复杂度有误,应为 $ O(W \sum k_i) $,而不应该再乘物品种类n |
Beta Was this translation helpful? Give feedback.
-
@SingerCoder hello~可以帮忙开一个 pr 修改一下吗 |
Beta Was this translation helpful? Give feedback.
-
介绍里面的将常数从max中提出来是否应该是f_{i,j} = max{f_{i-1,k} + b_i - |a_i - j|} = max{f_{i-1,k} - |a_i - j|} + b_i |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
这里的自变量是k |
Beta Was this translation helpful? Give feedback.
-
多重背包朴素算法时间复杂度为O(nm\sumk)吧 |
Beta Was this translation helpful? Give feedback.
-
朴素算法的时间复杂度里应该没有$n$了,物品个数是$\sumk_i$了 |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
orz,不过有没有单调栈优化的讲解呢? |
Beta Was this translation helpful? Give feedback.
-
单调队列优化多重背包的第一个公式的后面的公式怎么推出来的? 推了半天,没推出来 意思是j = y + xw吗? 有朋友帮忙解释一下不? |
Beta Was this translation helpful? Give feedback.
This comment was marked as spam.
This comment was marked as spam.
-
有没有大佬来更新一下单调队列多重背包板块,状态设置太多了,让人思绪断断续续的,不易理解。 |
Beta Was this translation helpful? Give feedback.
-
https://oi-wiki.org/dp/optimizations/monotonous-queue-stack/
OI Wiki 是一个编程竞赛知识整合站点,提供有趣又实用的编程竞赛知识以及其他有帮助的内容,帮助广大编程竞赛爱好者更快更深入地学习编程竞赛
Beta Was this translation helpful? Give feedback.
All reactions