CMSC 423 Homework #1:Due: Sep. 22 at the start of classYou may discuss these problems with your classmates, but youmust write up your solutions inde-pendently, without using common notes or worksheets. You must indicate at the top of your homeworkwho you worked with.Your write up should be clear, concise, and neat.You are trying to convince askeptical reader that your answers are correct. Messy or hard-to-read homeworks will not be graded.1. Consider the stringsa= “nonsense” andb= “oneness”. Suppose that a gap costs 5, a match cost-1,and the cost of aligning two mismatching charactersxandyis given by the functioncost:cost(n,o) = cost(n,s) = cost(n,e) = 2cost(o,e) = cost(o,s) = cost(s,e) = 1(a) Provide a well-labeled dynamic programming table for theglobalalignment betweenaandb.Show backtracking arrows. Find the optimal, lowest-cost alignment and its cost.(b) Provide a well-labeled dynamic programming table for thelocalalignment betweenaandb. Showbacktracking arrows. Find the optimal alignment and its cost.
This is the end of the preview.
access the rest of the document.