登录
首页 » C# » Longest Common Subsequence (Dynamic Programming)

Longest Common Subsequence (Dynamic Programming)

于 2022-05-14 发布 文件大小:112.91 kB
0 160
下载积分: 2 下载次数: 1

代码说明:

#include   #include   const int M = 100;      //記錄序列X和Y的LCS的長度   int c[M][M];   //二維陣列b記錄搜索方向,1-對角線方向;2-向上;3-向左;4-向上或向左   int b[M][M];   //lcs 記錄得到的LCS字元   char lcs[M];   // LCS最大長度   int  nlcs = 0;   /*  功能: 

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • cran-master
    5G C-RAN master code (cloud radio access network )
    2021-02-21 16:59:42下载
    积分:1
  • 24 温室监控系统仿真设计
    是室内温控仿真,根据温度调节转速,已成功实现,欢迎下载(It is indoor temperature control simulation, according to the temperature regulation speed.)
    2018-06-11 09:11:43下载
    积分:1
  • STM32F4系列中文手册.pdf
    STM32F407中文手册(完全版) 高清完整.pdf版.pdf
    2021-05-06下载
    积分:1
  • 石器时代800x600分辨率+真彩色登录器、服务端源代码
    石器时代 800x600 分辨率+真彩色登录器源代码,和服务端源代码
    2022-01-30 15:41:06下载
    积分:1
  • mymain
    遗传算法 图像分割挺好用的 希望有用 matlab(Genetic algorithm for image segmentation with the hope of good useful matlab)
    2015-03-09 16:22:39下载
    积分:1
  • wmicodecreator,
    WMICodeCreator, Windows Managment Interface Code Creator.-WMICodeCreator. MANAGEMENT Windows Interface Code Creator.
    2022-01-26 02:22:36下载
    积分:1
  • ForK1
    我们的目的是将一个分数拆分成若干个分子是1分母是正整数的分数之和的形式。例如2/3可以拆分成1/2+1/6的形式。这里不考虑顺序,比如1/6+1/2和1/2+1/6相同。 输入p, q, a, n, 其中p/q为分数,对这个分数进行拆分,要求拆分的分数个数不能多于n个,所有分母的乘积不能大于a。求有多少种拆分方法? 输入:最多200组数据。在每行中都有四个数分别表示p, q, a, n,之间以空格隔开,并且满足p,q<=800,a<=12000,n<=7,最后以四个0做为输入的结束。 输入示例: 2 3 120 3 2 3 300 3 0 0 0 0 输出示例: 4 7 (Our aim is to split a fraction into a number of elements is a denominator is a positive integer fraction of the sum of form. For example, 2/3 can be split into 1/2+1/6 form. Not considered here, the order, such as 1/6+1/2 and 1/2+1/6 of the same. Input p, q, a, n, where p/q as a fraction of this split scores require no more than the number of split points n-all the product of the denominator can not be larger than a. How many kinds of demand split method? Input: Up to 200 sets of data. In each line has four numbers indicate the p, q, a, n, separated by a space between, and meet the p, q < = 800, a < = 12000, n < = 7, the end, four 0 as the input end. Input Example: 2,312,032,330,030,000 sample output: 47)
    2009-11-12 09:54:17下载
    积分:1
  • src
    最大最小值快速算法,时间复杂度为o(1),比普通的算法快了很多(fast )
    2013-11-12 20:32:21下载
    积分:1
  • 国产超低功耗华大单片机HC32L110 IAP远程升级
    说明:  国产超低功耗华大单片机HC32L110 IAP远程升级程序(Domestic ultra-low power consumption Huada MCU HC32L110 IAP remote upgrade program)
    2020-06-16 08:44:12下载
    积分:1
  • LCCrypto_Src
    本程序可以在 PE 文件的结尾增加一个新节,从而在已被“加密”的程序开始运行时,要求输入密码。(This procedure can be the end of the document in the PE to add a new section, which has been in the encryption process to start running when asked to enter a password.)
    2008-02-29 09:29:32下载
    积分:1
  • 696516资源总数
  • 106658会员总数
  • 16今日下载