会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
CoolRandy
专注于编程的细节 The most effective way of learning a new program language is through examples: copy and paste a piece of codes, run it to see results, then try to modify and re-run it step-by-step
博客园
首页
新随笔
联系
订阅
管理
2014年4月6日
动态规划之LCS(最大公共子序列)
摘要: #include #include int b[50][50];int c[50][50];int length = 0;void lcs(char *x, int m, char *y, int n){ int i; int j; for(i = 1; i c[i][j-1]) { c[i][j] = c[i-1][j]; b[i][j] = 2; } else { c[i][j] = c[i][...
阅读全文
posted @ 2014-04-06 18:20 CoolRandy
阅读(250)
评论(0)
推荐(0)
编辑
公告