Answered step by step
Verified Expert Solution
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 Solve a problem using topdown and bottomup 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 string: ATAGTTCCGTCAAA ; DNA string: GTGTTCCCGTCAAA A T A G T T G T C A A A C A A A GT G C GT Length the best continuous length of the DNA string alignment: TGTTCCGTCAAA a Implement a solution to this problem using Topdown Approach of Dynamic Programming, name your function dna matchtopdownDNA DNA b Implement a solution to this problem using Bottomup Approach of Dynamic Programming, name your function dnamatchbottomupDNA DNA C Explain how your topdown approach different from the bottomup approach? d What is the time complexity and Space complexity using Topdown Approach What is the time complexity and Space complexity using Bottomup Approach f Write the subproblem and recurrence formula for your approach. If the top down and bottomup 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started