Question: Here we look at a problem from bioinformatics. You can think of a DNA sequence as a sequence of characters from {a,c,g,t}.Suppose you are given

Here we look at a problem from bioinformatics. You can think of a DNA sequence as a sequence of characters from {a,c,g,t}.Suppose you are given DNA sequence D1 of n1 characters and DNA sequence D2 of n2 characters. You want to know if these sequences appear to be related. An alignment is defined by inserting by inserting any number of spaces in D1 and D2 so that the resulting strings D1 and D2 both have the same length (with the spaces included as part of the sequence).Each character of D1(including each space as a character)has a corresponding character(matching or non-matching) in the same position D2.for a particular alignment A we say cost (A) is the number of mismatches (where you can think of a space as just another character and hence a space matches a space but does not match one of the other 4 character). As an example, let D1 be ctatg and D2 be ttaagc. One possible (not necessarily optimal)alignment is given by: ct at g tta agc In the above both D1 and D2 have length 8.The cost is 5.(there is a mismatches in the positions 1,3,5,6 and 8) Given a dynamic programming algorithm to find the cost of an optimal alignment for this problem and analyze its time complexity as a function of n1 and n2.Remember to (1)Describe a subproblem in natural language (2)Give a recursive solution to compute the values of the subproblems (3)argue that the optimal substructure property holds, and (4)describe how to fill in the table Then describe at a high level how to modify your algorithm to find an optimal alignment Hint: consider the relationship between this problem and the longest commom subset (LCS) problem.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!