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

  Prepare a sequence diagram for the booking confirmation use

Prepare a sequence diagram for the booking confirmation use case

  Find shortest paths from src to all vertices

Bellman-ford Algorithm Given a graph and a source vertex src in graph, find shortest paths from src to all vertices in the given graph. The graph may contain negative weight edges.

  Design a ram chip

Design a RAM chip that is 128K x 8. For each sub-part below, show the array of RAM cells and its dimensions, the decoder(s) required to access the array, and tabulate the numbers of gates required to implement the decoding.

  Develop a virtualization adoption plan

Develop a virtualization adoption plan applicable to the scenario by doing the following- Explain how the benefits of virtualization would impact the city of Seabreeze.

  What are they and can they be measured directly

What are they and can they be measured directly?

  What extent do specific technologies help companies

More generally, to what extent do specific technologies help companies gain an edge over their competitors? How easy or difficult would it be to initiate such advantages

  Risk assessment methodology

Propose a risk assessment methodology which can be used along with the company you chose for Case Study Phase 1. During Case Study Phase one, I chose the New York Presbyterian Hospital and now I have to come up with a risk assessment methodology ..

  Question regarding the member variable

Your class should have a constructor, one additional method and at least one member variable (e.g. boolean isOn to turn the item on or off). Be sure you demonstrate your class works properly by constructing an instance of it and calling your metho..

  Identify two emerging enterprise security trends and their b

Identify two emerging enterprise security trends and their benefits to a company's security strategy. Explain your reasoning.

  What would be the best way for an electrical

What would be the best way for an electrical engineer to enter the automotive industry?

  Flowchart that display the students average scores

Flowchart that display the students average scores for 3 quizzes - Display an appropriate error message and ask the user to re enter a value of 3 quizzes.

  Describe the different types of linear costs functions

Describe the different types of linear costs functions

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