python 2.7 - LCS algorithm in dot plot -


I hope someone can help me, I just can not get my program running The LCS (the longest normal substring) matrix (and later the longest is trying to find the normal substring). I can not get the dot plot together. I'm trying to add it to my empty matrix but it does not work. What am I doing wrong?

  def compute_lcs (seq_A, seq_B): longest = 0 DotPlot = [] m = len (seq_A) n = len (seq_B) limit line (1, M + 1): # Dotplet to call in range (1, N + 1): temp_row = [] if Siisi_a [line] == Sisibiac [Cola]: If line == 0 or call == 0: Dotplot [line-Cola] = 1 temp_row.append (DotPlot [row, cola]) and: dotplot [row, cola] = dotplot [row-1, cola -1] + 1 temp_row.append (DotPlot [row, cola]) and: dotplot [row, Cola] = 0 temporary_property (dotplot [row, cola]) dot Slat back  

thanks!


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -