edited by
486 views

2 Answers

Best answer
3 votes
3 votes

The LCS is of length 3. 

That means you have 3 blanks 

so now  

In First Blank - if you choose a then you cant choose b (vice versa) (So 2 options)

In Second Blank - if you choose c then you cant choose d (vice versa) (So 2 options)

In Third Blank - if you choose 1 then you cant choose 2,3 (vice versa) (So 3 options)

So total number of LCS = 2 * 2 * 3 = 12

selected by
4 votes
4 votes
The LCS are as follows:

ac1,ac2,ac3

ad1,ad2,ad3

bc1,bc2,bc3

bd1,bd2,bd3.
Answer:

Related questions

2 votes
2 votes
2 answers
2
Bikram asked May 26, 2017
368 views
Assume Dijkstra's Algorithm is used to find the shortest paths from node G in the above graph. The total number of edges which are not included in any of the shortest pat...
0 votes
0 votes
1 answer
3
Bikram asked May 26, 2017
333 views
Consider the following instance of the knapsack problem :$\begin{array}{|c|c|c|c|c|c|} \hline \text{Item} & a & b & c & d & e \\ \hline \text{Benefit} & 15 & 12 & 9 & 16 ...
0 votes
0 votes
1 answer
4
Bikram asked May 26, 2017
304 views
Let $T$ be a rooted ternary tree where each internal node of $T$ has a maximum of $3$ children. If root is at depth $0$, then maximum total number of vertices $T$ can hav...