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

  Discuss the advantages of using styles in a document

Discuss the advantages of using styles in a document. What is the difference between a paragraph style and a character style. How do you create a new style?

  Write a program to count the number of even elements

Write a program to count the number of even elements

  What is nat and what is it used for?

What is NAT and what is it used for?

  Do research to document the status of this lawsuit

Do research to document the status of this lawsuit.

  Determine the time necessary to reach a velocity

A square tank, 3 m on a side, is filled with water to a depth of 2 m. A vertical slot 6 mm wide from the top to the bottom allows the water to drain out. Determine the height h as a function of time and the time necessary for one half of the water..

  Create an xml schema simple type declaration

Create an XML Schema simple Type declaration for the 4 magnetic directions North, South, East and West. The simpleType should be defined within an attribute named magnetic Direction, with North being the default.

  Computer crime essay

Identify and discuss the steps necessary to make electronic evidence admissible in court.

  Write a program in matlab to determine how long

Write a program in MATLAB to determine how long, in units of seconds, it will take a motor to raise a load into the air. Assume the user will specify the power of the motor in units of watts, the rated efficiency as a percentage (in whole number f..

  What is the maximum operating frequency of the circuit

How much clock skew can the circuit tolerate if it must operate at 2 GHz?

  How many issue slots are wasted due to hazards

Now assume you have 2 SS CPUs. How many cycles will it take to execute these two threads? How many issue slots are wasted due to hazards?

  Estimate the reliability of each of the channels

Estimate the reliability of each of the channels mentioned in exercise 1, above, by imposing equal source frequencies on the input characters. (Of course, in (c) the result will be exact.)

  What is the surface area of the heat exchanger

A cross-flow heat exchanger used in a cardiopulmonary bypass procedure cools blood flowing at 5 liter/min from a body temperature of 37°C to 25°C in order to induce body hypothermia, which reduces metabolic and oxygen requirements.

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