Dynamic Programming

Dynamic Programming is a method of solving problems exhibiting the properties of overlapping subproblems and optimal substructure that takes much less time than naive methods.It is typically applied to optimization problems.

Longest Common subsequence and substring:

Longest Common subsequence and substring are two applications of Dynamic Programming.The longest common subsequence problem is finding the longest subsequence common to all sequences in a set of sequences (often just two) while longest common substring is finding the longest substring.

1)Determine an LCS of {1,0,0,1,0,1,0,1} and {0,1,0,1,1,0,1,1,0}.
2)Give an algorithm to find the Longest common subsequence of sequences with lengths m,n respectively and also analyze their time complexities.
3)Give an algorithm to find the Longest common string of strings with lengths m,n respectively and also analyse their time complexities.
4)Give an O(n^2) time algorithm to find the longest monotonically increasing subsequence of a sequence of n numbers.
5)Give an O(n^2) time algorithm to find the longest monotonically increasing subsequence of a sequence of n numbers.
6)What is the difference between longest common subsequence and longest common substring
7)State few applications of Dynamic Programming.

2 comments:

  1. Subsequently, shrewd agreement advancement administrations are likewise ascending on the lookout. Savvy contract designers compose code that exists in a blockchain that is kept up with and oversaw by PCs joined into one organization. The advancement interaction contains a few stages that are molded by the sort of the help. In such a manner savvy contract programming can be utilized for various purposes. In any case, essentially it is an administration of arrangements between two or significantly more gatherings that is particularly helpful in crypto business as it is a completely digitalized circle>> smart contract blockchain developer

    ReplyDelete
  2. The essay writer tool is an invaluable resource for those seeking assistance in essay writing. With its wide range of features and functionalities, it helps writers craft well-researched and structured essays. From generating topic ideas to providing grammar and style suggestions, the essay writer tool acts as a virtual writing assistant, enhancing the overall writing process.

    ReplyDelete