edited by
212 views
2 votes
2 votes

There are two longest subsequences, not necessarily contiguous, common to the strings $\text{“ARTIFICIAL"}$ and $\text{“INTELLIGENCE."}$ They are $\text{“IIC"}$ and $\text{“TIC"}$ which are of length three.

Consider two strings $\text{S1 = “CORONAVIRUS"}$ and $\text{S2 = “SARSCOVID".}$ Let $x$ be the length of a longest common subsequence between $\text{S} 1$ and $\text{S} 2$ and let $y$ be the number of such longest common subsequences of length $x$ between $\text{S} 1$ and $\text{S} 2$. What is $x+5y?$ 

  1. $13$
  2. $15$
  3. $14$
  4. $16$
edited by

1 Answer

Related questions

1 votes
1 votes
2 answers
1
admin asked Jul 23, 2022
306 views
The roots of the polynomial $p(x)=x^{4}-2x^{3}-2x^{2}+8x-8$ are:$1, -1, 2, 2+3 i$$1+i, 1-i, 2, -2$$1, -1+i, 2, 2+3 i$$1+i, -1+i, 2, -2$
0 votes
0 votes
1 answer
2