Question: P 1 ( LCS ) ( 1 0 pts ) Find the Longest Common Subsequence. ( 3 pts ) Fill in the table. Be careful:
PLCS pts Find the Longest Common Subsequence.
pts Fill in the table. Be careful: one mistake in one cell can cause the remaining cells to be wrong. pts Record the direction as well using the symbols: for diagonal, for left, for up Eg in a cell means the value is and the arrow is left.
Use the LCSlength pseudocode from the slides. Whenever there is a tie between left and up chose up this is consistent with LCSlength Penalty for the wrong choice in case of a tie: pt
XT R A Y
Y S T O R M
pts LCS final answer: Length: Subsequence:
pt Highlight the cells that you visit when recovering the longest common subsequence.
PSEUDOCODE:
ength
length
length
array rows, columns
array rows, columns
for
for
for
for
diagonal
else
arrow
else
eft arrow
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
