10 points Save Answer Consider the pseudo code of the motif search using greedy
ID: 3903800 • Letter: 1
Question
10 points Save Answer Consider the pseudo code of the motif search using greedy approach discussed in class (in Book it is in section 5.5). Let's say you are interested in a motif of length 4 and each sequence in DNA is of length 100, how many times line#5 in the pseudo code will be evaluated ? www.bioalgorithms info bestMotif: represents the positions of motif in each DNA sequence BestMotif,: represents the position of mobf in P DNA sequence GREEDYMOTIFSEARCH(DNA.t,n) 1 bestMotif (. ) 2 s?(1,1, 1) 3 for -1 to u-1+ First scan the first 2 sequences if Soore(s,2, DNA)> Score(best Motif,2. DNA) Best Moti-s Best Motif 82 8 sBestMotifi 92 Best Motif scan the remaining sequences 10 for i-3 tot- for 1 ton +1 if Score(s,i, DNA) > Score(best Motif,i, DNA) 12 13 best Motif-s -14 s. ? bestMotif. 15 return best Motif ? 10000 10 points The search tree to store all the possible 3-mers will have how many nodes (root node internal nodes +leaf nodes) ? 10 points Save Answer In the context of motif finding problem, you are given 5 DNA sequences cggtacct ccatacgt ccattagt acatgcct ccatacgg in the gven 5 ONA sequencesExplanation / Answer
1. Number of times loop 1 will be executes is from 1 to n-l+1 = 97, hence 96 times and same is the case with inner loop
Hence line #5 will be executed 96 * 96 = 9216 times
2. 64 (44)
3. cca
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.