subject

In class we wrote the program to find all alignments between a pair of sequences when we add gaps to the shorter sequence. you can find that code on the sample code page. modify this code so that it computes the score for each alignment using the following scoring: match = +1 mismatch = -1 gap = 0 the program should find the optimal alignment(s) and print them with their score. now add two counters and some print statements to your code to count how much work is done by this algorithm to find the optimal alignment. the main units of work in this program are adding a gap to a sequence, and comparisons to compute the score. you may use global variables to store the amount of work that is done. test your result on the following sequences:how much work does the algorithm do on these sequences? note: to use a global variable to represent the amount of work required to insert gaps into the sequences, include the following line of code in each function where you reference the variable:

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 22:50, youngboymark123
Assume the existence of a bankaccount class. define a derived class, savingsaccount that contains two instance variables: the first a double, named interestrate, and the second an integer named interesttype. the value of the interesttype variable can be 1 for simple interest and 2 for compound interest. there is also a constructor that accepts two parameters: a double that is used to initialize the interestrate variable, and a string that you may assume will contain either "simple", or "compound", and which should be used to initialize the interesttype variable appropriately. there should also be a pair of functions getinterestrate and getinteresttype that return the values of the corresponding data members (as double and int respectively).
Answers: 2
image
Computers and Technology, 23.06.2019 02:00, magicalunicorns47
Arecipients list has been loaded into a document. which commands should be clicked in order to filter the list so that letters will not be printed for recipients who live in a certain state? mailings tab, start mail merge, select recipients, type new list, then insert only contacts from the desired states mailings tab, rules, select recipients, use existing list, then choose a recipients list that includes only contacts in certain states mailings tab, select recipients, use existing list, rules, fill in, then type in certain states mailings tab, rules, skip record select “state” under field name, then type in the state name under “equal to”
Answers: 2
image
Computers and Technology, 23.06.2019 09:00, Riddledjam44623
Before you record your own voice, you should a. record other people's voices b. warm up and practice difficult names c. listen to your favorite songs d. read a transcript of a good radio news segment
Answers: 1
image
Computers and Technology, 23.06.2019 18:40, brooklyn4932
How does is make you feel when you're kind to others? what are some opportunities in your life to be more kind to your friends and loved ones? imagine a world where kindness has be outlawed. how would people act differently? would your day-to-day life change significantly? why or why not?
Answers: 2
You know the right answer?
In class we wrote the program to find all alignments between a pair of sequences when we add gaps to...

Questions in other subjects: