
Dynamic Programming part 1
Authored by Nguyễn Anh
Computers
University
Used 6+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
Which of the following standard algorithms is not Dynamic Programming based.
Bellman–Ford Algorithm for single source shortest path
Floyd Warshall Algorithm for all pairs shortest paths
0-1 Knapsack problem
Prim's Minimum Spanning Tree
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
We use dynamic programming approach when
We need an optimal solution
The solution has optimal substructure
The given problem can be reduced to the 3-SAT problem
It's faster than Greedy
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
A greedy algorithm can be used to solve all the dynamic programming problems.
True
False
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Dynamic programming problems require making a sequence of interrelated decisions, where each decision corresponds to one stage of the problem.
True
False
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Time complexity of longest common sub string using DP is
O(n*m)
O(n+m)
O(n/m)
O(n-m)
6.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
Dynamic programming problems always have a finite number of states
False
True
7.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Let two strings A="BanHocVoNguToi11Gio" and B="HocVoGiHocHoai".
Find LCS(A, B)
6
9
8
12
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
Internet Basics
Quiz
•
5th Grade - University
10 questions
OOP intro quizz
Quiz
•
University
12 questions
Computer Software
Quiz
•
University
15 questions
Computer and Other Human Inventions
Quiz
•
University
10 questions
IoT Cloud
Quiz
•
University
15 questions
Quiz NO. 1
Quiz
•
University
12 questions
Cisco RSE C2
Quiz
•
University
10 questions
Post Test #4 - Python Fundamental #3
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade