Answer the question
In order to leave comments, you need to log in
Sequence Alignment Algorithm
My regards!
There are four character sequences:
dbca, AC ACB BCA
D-BCA- -AC-- -ACB --BCA-
Answer the question
In order to leave comments, you need to log in
For the algorithm for 2, we have 2 pointers (or indices) - where we are on the first line and where on the second. Here we will store n (or 10) pointers and do the same (that is, iterate over the selected character and shift the pointers when they match). It is clear that it is inconvenient to do this with an array, as for the case of 2 lines, so I would start a structure that stores pointers and put the answers not in an array, but in a map. If it's not clear, I can quickly write code - it's not difficult (C ++ or Java)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question