LCS Quiz

LCS Quiz

Professional Development

4 Qs

quiz-placeholder

Similar activities

Into practice session 3 culture

Into practice session 3 culture

Professional Development

7 Qs

General Knowledge Quiz  LEVA 2024

General Knowledge Quiz LEVA 2024

Professional Development

8 Qs

C9U3LA Human wonders

C9U3LA Human wonders

Professional Development

6 Qs

SOM - SESSION 1

SOM - SESSION 1

Professional Development

8 Qs

Guramala Garden Plant Quiz

Guramala Garden Plant Quiz

Professional Development

8 Qs

Matrix Chain Multiplication

Matrix Chain Multiplication

Professional Development

4 Qs

SPCA Training

SPCA Training

Professional Development

8 Qs

DAA Quiz (27 Aug 2020)

DAA Quiz (27 Aug 2020)

Professional Development

5 Qs

LCS Quiz

LCS Quiz

Assessment

Quiz

Professional Development

Professional Development

Hard

Created by

Sanjiv Sharma

Used 4+ times

FREE Resource

4 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following methods can be used to solve the longest common subsequence problem?

Recursion

Dynamic programming

Both recursion and dynamic programming

Greedy algorithm

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Consider the strings “PQRSTPQRS” and “PRATPBRQRPS”. What is the length of the longest common subsequence?

9

8

7

6

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of the brute force algorithm used to find the longest common subsequence?

O(n)

O(n^2)

O(n^3)

O(2^n)

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following is the longest common subsequence between the strings “hbcfgmnapq” and “cbhgrsfnmq” ?

hgmq

cfnq

bfmq

fgmna