登录
首页 » 算法 » 设A和B是2个字符串。要用最少的字符操作将字符串A转换为字符串B。这里所说的字符操作包括: 1. 删除一个字符 2. 插入一个字符 3. 将一个字符...

设A和B是2个字符串。要用最少的字符操作将字符串A转换为字符串B。这里所说的字符操作包括: 1. 删除一个字符 2. 插入一个字符 3. 将一个字符...

于 2022-01-26 发布 文件大小:525.00 B
0 214
下载积分: 2 下载次数: 1

代码说明:

设A和B是2个字符串。要用最少的字符操作将字符串A转换为字符串B。这里所说的字符操作包括: 1. 删除一个字符 2. 插入一个字符 3. 将一个字符改为另一个字符 将字符串A变换为字符串B所用的最少操作数称为A到B的编辑距离,极为d(A,B)。设计一个算法,计算任意两个字符串的编辑距离。 -Set A and B are two strings. Operation will use the least character string A is converted to a string B. Operation of characters are talking about here include: 1. Delete a character 2. Insert a character 3. Will be replaced by one character to another character will be transformed into a string A string of at least B operand used by A to B is called the edit distance is extremely d (A, B). Design an algorithm to calculate any two of the string edit distance.

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

发表评论

0 个回复

  • 回溯解N后的C++源码(Visual Stdio2010环境测试通过)
    #include #include #include #include using namespace std;class Queen{ friend int nQueen(int);private: bool Place(int k); void Backtrack(int t); void Output(); int n,//皇后个数  *x;//当前解 long sum;//当前已找到的可行性方案数};bool Queen::Place(int k){ for (int j=1;jn) {  sum++;  Output(); } else {  for (int i=1;i
    2022-02-06 19:11:54下载
    积分:1
  • 解大规模线性方程组的预条件Gmres方.系数矩阵可以非对称正定....
    解大规模线性方程组的预条件Gmres方法.系数矩阵可以非对称正定.-Solution of large-scale linear equations of the preconditioned GMRES method. Coefficient matrix can be non-symmetric positive definite.
    2022-05-15 20:02:59下载
    积分:1
  • 最短路径
    Description 求出有n(1 < n < 600)个结点有向图中,结点1到结点n的最短路径。  Input 第一行有2个整数n和m(0 < m
    2022-07-25 07:53:30下载
    积分:1
  • 双链表c实现
    数据结构最基本的算法,双链表的c实现,包括创建,删除,修改,增加成员等操作
    2022-03-22 20:09:31下载
    积分:1
  • sound_check_by_MCU
    通过MCU检查声音
    2022-07-07 00:57:08下载
    积分:1
  • 机图形学,道格拉斯曲线拟合,Delphi源代码,值得学习…
    计算机图形学,Douglas曲线拟合,Delphi源码,值得学习。-Computer Graphics, Douglas curve fitting, Delphi source code, it is worth learning.
    2023-01-26 07:00:03下载
    积分:1
  • labview 串口控制LED
    labview上位机程序通过按键控制串口收发数据,进而串口控制两个LED灯,这个程序主要是做了labview串口使用的演示,通过串口的数据收发不仅可以控制开关量信号,而且可以进行协议的收发等
    2023-08-02 17:30:04下载
    积分:1
  • 文本文件行数
    计算文本文件行数-Calculate rows number of text files
    2022-04-22 02:58:41下载
    积分:1
  • C++ 链表类
    自己写的链表类,用C++封装, 有部分功能没有测试。模板编程。
    2022-10-30 06:10:02下载
    积分:1
  • 二叉树遍历的程序
    二叉树遍历的算法程序-binary tree traversal algorithm procedures
    2022-03-18 05:45:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载