南邮 | 算法分析与设计实验二:动态规划法

题目:用动态规划法实现求两序列的最长公共子序列。 程序代码 #include <iostream> #include <cstring> //memset需要用到这个库 #include <algorithm> using namespace std; int const MaxLen = 50; class LCS { public: LCS(int nx, int ny, char
相关文章
相关标签/搜索