GATE CS 2014 · Set-2 · Asymptotic Analysis & Recurrences

NAT · 2 marks · Problem PROG-DIVC-0107

Consider two strings A="qpqrr" and B="pqprqrp". Let x be the length of the longest common subsequence (not necessarily contiguous) between A and B and let y be the number of such longest common subsequences between A and B. Then x + 10y = .

Numerical answer (NAT).

Solve it on GATE DA practice →More Searching & Sorting Algorithms problems

Show the worked solutionOfficial GATE Answer Key: [34.0, 34.0].See full step-by-step discussion on GateOverflow: https://gateoverflow.in/1996/gate2014-2-37

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com