2

Given two circular lists, is there an efficient way to compute the optimal alignment between the two lists? For example, given circular lists:

a b b c b c a 

the optimal alignment is

a b b c a b _ c 

because this alignment has the smallest edit distance (note: this optimal alignment is not and need not be unique).

One way to do this is to compute the edit distance between the first list and each cyclic permutation of the second list, taking the minimum edit distance as the optimal alignment. Is there a more efficient way to do so?

0

1 Answer 1

3

suppose S1="abbc", S2="bca"

now let S2'=strcat(S2,S2)="bcabca", then compute edit distance between S1 and S2', you will get

--abbc- bcab-ca 

just a hint, more details should be considered

Sign up to request clarification or add additional context in comments.

1 Comment

So, after strcat(,) to one of the strings, run something like Needleman-Wunsch? Seems promising.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.