Dynamic Programming part 1

Quiz
•
Computers
•
University
•
Hard
Nguyễn Anh
Used 6+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
JAVA-BootCamp - Day1

Quiz
•
University
10 questions
PSP Week3

Quiz
•
University
15 questions
programming language generation

Quiz
•
University
10 questions
Array and string unit 7

Quiz
•
University
10 questions
C++ quiz

Quiz
•
10th Grade - Professi...
10 questions
Simple Easy Basic Lua Quiz

Quiz
•
4th Grade - Professio...
15 questions
Selection Sort & Exhaustive Search

Quiz
•
University
10 questions
C Programming - Basics 001

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University