Edit distance recursive algorithm — Skiena

后端 未结 6 1771
执笔经年
执笔经年 2020-12-30 02:37

I\'m reading The Algorithm Design Manual by Steven Skiena, and I\'m on the dynamic programming chapter. He has some example code for edit distance and uses some functions w

6条回答
  •  长发绾君心
    2020-12-30 02:52

    On page 287 in the book:

    int match(char c, char d)
    {
      if (c == d) return(0); 
      else return(1); 
    }
    
    int indel(char c)
    {
      return(1);
    }
    

提交回复
热议问题