将数值字符串切割成所需片段
Cut a Numeric String into Required Pieces
AI总结:
本文研究正实数序列按最小片段和切割的问题,给出贪心、动态规划及面向 n-k 片段的 FPT 算法。
摘要:
我们研究将一个长度为 n 的正实数字符串切割成 k 个片段,使每个片段的和至少为 b 的问题。该问题也可以表述为通过合并相邻数字,将这样的字符串转换为一个新字符串。我们讨论了它与其他问题的联系,并给出了与该问题相关的若干算法:一个 O(n) 时间的贪心算法,一个 O(kn log n) 时间的动态规划算法,以及一个针对 n-k 个片段的 O(n+k log n+2^k k) 时间 FPT 算法。
英文摘要:
We study the problem of cutting a length-$n$ string of positive real numbers into $k$ pieces so that every piece has sum at least $b$. The problem can also be phrased as transforming such a string into a new one by merging adjacent numbers. We discuss connections with other problems and present several algorithms in connection with the problem: an $O(n)$-time greedy algorithm, an $O(kn\log n)$-time dynamic programming algorithm, and an $O(n+ k \log n + 2^kk)$-time FPT algorithm for $n-k$ pieces.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。