Find the lcs and scs of two given sequences

Assignment Help Basic Computer Science
Reference no: EM131366292

The longest common subsequence (LCS) of two sequences T and P is the longest sequence L such that L is a subsequence of both T and P. The shortest common super sequence (SCS) of T and P is the smallest sequence L such that both T and P are a subsequence of L.

(a) Give efficient algorithms to find the LCS and SCS of two given sequences.

(b) Let d(T,P) be the minimum edit distance between T and P when no substitutions are allowed (i.e., the only changes are character insertion and deletion). Prove that d(T,P) = |SCS(T,P)|-|LCS(T,P)| where |SCS(T,P)| (|LCS(T,P)|) is the size of the shortest SCS (longest LCS) of T and P.

Reference no: EM131366292

Questions Cloud

Why are so many deer populating the eastern forests : Why are so many deer populating the eastern forests? How did regulatory laws, human activity and ecosystem changes cause the deer population to increase over time?
Incorporate a swap operation into our edit distance function : Incorporate a swap operation into our edit distance function, so that such neighboring transposition errors can be fixed at the cost of one operation.
Conform to the basic collegiate scholarship standards : Specifically reference, explain, and assess one or more arguments presented in The Consolations of Philosophy contain a clear thesis, with clear supporting arguments
Determines whether z is a shuffle of x and y : Give an efficient dynamic-programming algorithm that determines whether Z is a shuffle of X and Y.
Find the lcs and scs of two given sequences : Let d(T,P) be the minimum edit distance between T and P when no substitutions are allowed (i.e., the only changes are character insertion and deletion). Prove that d(T,P) = |SCS(T,P)|-|LCS(T,P)| where |SCS(T,P)| (|LCS(T,P)|) is the size of the sho..
Identify the major assumptions and bias of the drug industry : Identify the first step in the student's guide to research.Define the first step of research in your own words.Identify the major assumptions and bias of the drug industry that underlie drug research.Identify the personal bias that you, as a consumer..
Solving the subgraph isomorphism problem : How does your program perform on such special cases of subgraph isomorphism as Hamiltonian cycle, clique, independent set, and graph isomorphism?
Discuss the pros and cons of cam : Imagine that a patient has requested an explanation of the pros and cons of complementary and alternative medicine (CAM) in the United States. However, the patient has also requested scholarly references to support both pros and cons. Discuss the ..
Explain how can a company leverage its employees : What are your top five strengths? Were you surprised at the results? How can a company leverage its employees' strengths to build strong company culture?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  How pms allot preservation treatment to candidate project

1. Does PMS allot preservation treatment to candidate project? 2. If answer to question 1 is Yes or Under Development, which groups of treatments does PMS cover?

  Using the division remainder method

Using the Division Remainder Method, give a concrete example of a hash function for a storage array with 10 storage locations addressed 0 through 9. Call your hash function h, define your function mathematically as h(x) = x mod 10

  Is there any regularity to this amount of time

How many links do you have to add for this to occur? Run the model several times and examine how many ticks it takes to have all the nodes be part of the giant component. Is there any regularity to this amount of time?

  A typical public telephone line using 4800 bps

The probability that a single bit will be in error on a typical public telephone line using 4800 bps modem is 10 to the power -3. If no error detection mechanism is used, the residual error rate for a communication line using 9-bit frames is approxim..

  What types of writing do you perform

Think about who you are as a writer. What types of writing do you perform? Does your writing vary according to your situation and audience? Does it vary according to how you ‘read' your environment?

  Draw the symbol table and its contents at the point labelled

Draw the symbol table and its contents at the point labelled here.

  Program and version of the program

Write instructions for a 1- to 2-page handout that explains how to create a table in Microsoft® Word (whatever version you have) and how to add and delete columns and rows from an existing table.

  Plate and on the circular edge

The temperature on a circular plate, (x-1)^2+y^2=4,has formula, T (x,y)= x^2+y^2+60. Find all hot/cold spots, alongwith temperatures, both (a) within the plate and (b) on the circular edge.

  Determine the discount percentage

You are to develop pseudocode or C# code that will obtain the total dollars purchased from the user, determine the discount percentage, and display the total amount due. When the purchases are more than $2,000, the discount is 12%. When the purcha..

  Explaining dns zone in secure dynamic updates

If a DNS zone accepts only secure dynamic updates and the DHCP server is a member of the DnsUpdateProxy security group.

  How the tree will shrink and show the final tree

how the tree will shrink and show the final tree.

  Tasked with satisfying the audio/visual

Media Support Services (MSS) is tasked with satisfying the Audio/Visual (AV) needs of the university across its major functions. For example, the MSS group is in charge of installing interactive technologies in classrooms, conference rooms and even i..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd