Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(4 points) A strand of DNA is represented as a string over the alphabet -{a, c, g,t). You are given a DNA text T E

image text in transcribed

(4 points) A strand of DNA is represented as a string over the alphabet -{a, c, g,t). You are given a DNA text T E and a DNA pattern P E ", n-m. Explain how to compute the Hamming distance between the pattern and every offset of the text, i.e., you want to compute the array where, for equal length strings X, Y, HamDist(X, Y) is the number of positions where they differ: Give an O(n log n) algorithm to compute the array A. Just for fun: show how to speed up the algorithm to run in O(n log m) time Hint: convolutions (4 points) A strand of DNA is represented as a string over the alphabet -{a, c, g,t). You are given a DNA text T E and a DNA pattern P E ", n-m. Explain how to compute the Hamming distance between the pattern and every offset of the text, i.e., you want to compute the array where, for equal length strings X, Y, HamDist(X, Y) is the number of positions where they differ: Give an O(n log n) algorithm to compute the array A. Just for fun: show how to speed up the algorithm to run in O(n log m) time Hint: convolutions

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

=+to live and work wherever he or she wants?

Answered: 1 week ago

Question

=+How will this affect the recruiting process?

Answered: 1 week ago