Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please do not copy from other questions, need new answers and explanations. Assignment: Dynamic Programming 1 . Solve a problem using top - down and

Please do not copy from other questions, need new answers and explanations. Assignment: Dynamic Programming 1. Solve a problem using top-down and bottom-up approaches of Dynamic Programming technique DNA sequence is made of characters A, C, G and T, which represent nucleotides. A sample DNA string can be given as ACCGTTTAAAG'. Finding similarities between two DNA sequences is a critical computation problem that is solved in bioinformatics. Given two DNA strings find the length of the longest common string alignment between them (it need not be continuous). Assume empty string does not match with anything. Example: DNA string1: ATAGTTCCGTCAAA ; DNA string2: GTGTTCCCGTCAAA A T A G T T G T | C A A A ||1| C A A A GT G C GT Length the best continuous length of the DNA string alignment: 12(TGTTCCGTCAAA) a. Implement a solution to this problem using Top-down Approach of Dynamic Programming, name your function dna match_topdown(DNA1, DNA2) b. Implement a solution to this problem using Bottom-up Approach of Dynamic Programming, name your function dna_match_bottomup(DNA1, DNA2) C. Explain how your top-down approach different from the bottom-up approach? d. What is the time complexity and Space complexity using Top-down Approach What is the time complexity and Space complexity using Bottom-up Approach f. Write the subproblem and recurrence formula for your approach. If the top down and bottom-up approaches have the subproblem recurrence formula you may write it only once, if not write for each one separately. Name your file DNAMatch.py

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_2

Step: 3

blur-text-image_3

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

DATABASE Administrator Make A Difference

Authors: Mohciine Elmourabit

1st Edition

B0CGM7XG75, 978-1722657802

More Books

Students also viewed these Databases questions

Question

What is the purpose of the Salary Structure Table?

Answered: 1 week ago

Question

What is the scope and use of a Job Family Table?

Answered: 1 week ago