下载中心
Instead of finding the longest commonsubsequence, let us try to determine thelength of the LCS.rar
1星 发布者: rubyonrails

2014-03-05 | 1积分 | 1006B |  0 次下载

下载 收藏 评论

文档简介
标签: instead

instead

finding

finding

the

the

determine

the

Instead of finding the longest commonsubsequence, let us try to determine thelength of the LCS.􀂄 Then tracking back to find the LCS.􀂄 Consider a1a2…am and b1b2…bn.􀂄 Case 1: am=bn. The LCS must contain am,we have to find the LCS of a1a2…am-1 andb1b2…bn-1.􀂄 Case 2: am≠bn. Wehave to find the LCS ofa1a2…am-1 and b1b2…bn, and a1a2…am andb b bb1b2…bn-1Let A = a1 a2 … am and B = b1 b2 … bn􀂄 Let Li j denote the length of the longest i,g gcommon subsequence of a1 a2 … ai and b1 b2… bj.􀂄 Li,j = Li-1,j-1 + 1 if ai=bjmax{ L L } a≠b i-1,j, i,j-1 if ai≠jL0,0 = L0,j = Li,0 = 0 for 1≤i≤m, 1≤j≤n.

评论
相关视频
  • 控制系统仿真与CAD

  • PLC功能指令应用详解

  • 微波毫米波电路分析与设计

  • Android车载系统框架

  • 天线原理与基本参数

  • 嵌入式电机驱动 SoC NSUC1610 的座椅通风应用解说

推荐帖子
精选电路图
  • PIC单片机控制的遥控防盗报警器电路

  • 使用ESP8266从NTP服务器获取时间并在OLED显示器上显示

  • 带有短路保护系统的5V直流稳压电源电路图

  • 如何构建一个触摸传感器电路

  • 如何调制IC555振荡器

  • 基于ICL296的大电流开关稳压器电源电路

×