in Others edited by
210 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$
in Others edited by
by
210 views

1 Answer

3 votes
3 votes

Answer is option C 

we will see why

Related questions