知识卡片
回文子序列允许跳字符
回文是正反读相同的非空串;“最长回文子序列”允许从原串跳过字符,但剩余字符须保序,不能与最长回文子串混同。
本章问题要求设计高效算法,未提供可直接验收的递推或复杂度。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 第14章 动态规划 · 查看原书依据
A palindrome is a nonempty string over some alphabet that reads the same forward and backward.
参考来源
- 位置:《算法导论(第4版)》第 14 章问题与章末注释(`OEBPS/chapter014.xhtml`,文本字符 [95000, 105000))。
- 结论依据:问题14-2 定义回文为非空正反同读串,要求寻找原串的最长回文子序列;子序列允许跳字符,题面未提供算法与已证复杂度。
- 原始内容:A palindrome is a nonempty string over some alphabet that reads the same forward and backward.