subject
Engineering, 13.11.2019 01:31 chloeholt123

Given two strings x = x1, and y = y1, give a dynamic programming algorithm to find the length k of the longest string z = z1, . . , zk where z appears as a substring of x and as a subsequence of y . recall, a substring means consecutive elements. for example, for the following input: x = a, b,d, b,a, b,f, g,d y = b, e,t, f,d, b,f, a,f, r then the answer is 4 (since, b, d, b, a is a substring of x and it is also a subsequence of y). you do not need to output the actual substring, just its length. (faster (and correct) in asymptotic o(·) notation is worth more credit.) (a) define the entries of your table in words. e. g., t (i) or t (i, j) is (b) state recurrence for entries of table in terms of smaller subproblems. (c) write pseudocode for your algorithm to solve this problem. (d) analyze the running time of your algorithm.

ansver
Answers: 3

Another question on Engineering

question
Engineering, 03.07.2019 14:10
When at a point two solid phase changes to one solid phase on cooling then it is known as a) eutectoid point b) eutectic point c) peritectic point d) peritectoid point
Answers: 3
question
Engineering, 04.07.2019 18:10
Afour cylinder four-stroke in-line engine has a stroke of 160mm, connecting rod length of 150mm, a reciprocating mass of 3kg and its firing order is 1-3-4-2. the spacing between cylinders is 100mm. i. show that the engine is in balance with regard to the primary inertia forces and primary 3. a and secondary inertia couples. li determine the out of balance secondary inertia force ii. propose ways of balancing this out of balance force and discuss the challenges that will arise
Answers: 3
question
Engineering, 06.07.2019 02:30
A75mm diameter shaft is supported in a journal bearing 75mm long with a diametral clearance of 0. 1mm. it supports a radial load of 1000 n and is lubricated with sae 50 oil at 70°c. find the friction torque and the power loss when the crankshaft rotates at 2900 rev/min.
Answers: 1
question
Engineering, 06.07.2019 03:20
Figure out the odd statement about ceramics in the following (a) good insulators of heat and electricity (b) usually less desire than metals (c) ductile in nature (d) contains both metallic and nonmetallic elements
Answers: 3
You know the right answer?
Given two strings x = x1, and y = y1, give a dynamic programming algorithm to find the length k of t...
Questions
question
Mathematics, 11.03.2021 21:00
Questions on the website: 13722367