Which are two key properties of the problem that could lead to the solution using dynamic programming?

Analysis of Algorithm Chapter 7 : Dynamic Programming

Quiz
•
Mathematics
•
University
•
Hard
วัชรศักดิ์ ศิริเสรีวรรณ
Used 6+ times
FREE Resource
9 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 2 pts
Overlapping subproblem
Optimal substructure
Non-overlapping subproblem
Greedy subproblem
Polynomial time complexity
2.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which are the reasons that cause the time from the recursive control structure becomes too high ?
There are too many function calls on smaller size input
The large table are required to store data
Using the recursive stack for collecting function call value
The n at base condition is relatively low compared to the input n.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a key point of dynamic programming?
The storage of results in the smaller case to use for solving the bigger one.
The recursive calls of function
The division of the problem into sub-problems for easier solving
Including multiple ways of solutions to solve the problem based on inputs
4.
MULTIPLE SELECT QUESTION
45 sec • 2 pts
Which are types of dynamic programming based on storing
Tabulation
Dynamic memory
Top up
Memoization
Static memory
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
From the tabulation derived from the dynamic programming approach of Longest Increasing Subsequence algorithm, what is the value of A + B
Note that if two elements have the equal LIS value, choose the one with the less value.
6.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Based on this resulting tabulation, which elements are NOT in the longest increasing subsequence?
47
46
18
38
25
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given N be the number of items, C be the capacity of the knapsack, W be the list of item weights and V be the list of item values, which is the dimension of the tabulation storing the result of this 0/1 knapsack problem.
N x (max(W)+1)
N x (C+1)
C x (len(W)*len(V))
len(W) x len(V)
8.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
The item i (w[i], v[i]) can be chosen at W = X, which ones are TRUE
X - w[i] ≥ 0
If v[i] > dp[i - 1][X]
then item i is chosen
If i = 1 then dp[1][X] = v[1]
If dp[i][X-w[i]] + v[i] < dp[i-1][X]
then, item i is not chosen.
9.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
ข้อใดไม่ใช่กระบวนการที่ถูกต้องของการทำรูปเล่มเอกสาร หลังจากนำเสนอเสร็จแล้ว
แปะวางเนื้อหาจากแหล่งข้อมูลให้ครบทุกหน้า
แปะวางเนื้อหาจากสไลด์นำเสนอให้ครบทุกหน้า
ให้ลิงค์คลิปยูทูปหรือเพจ โดยไม่ใส่วันที่ที่อ้างอิง
เขียนเนื้อหาสรุปใหม่ และเพิ่มรูปประกอบที่อาจไม่อยู่ในสไลด์
เขียนเนื้อหาเป็นย่อหน้าตามความเข้าใจแบบย่อ
Similar Resources on Quizizz
12 questions
Funkcje

Quiz
•
University
10 questions
Q3 Física

Quiz
•
7th Grade - University
10 questions
Funkcje

Quiz
•
10th Grade - University
12 questions
Geometry Perpendicular and Angle Bisectors

Quiz
•
10th Grade - University
12 questions
matrix

Quiz
•
10th Grade - University
14 questions
Find the Upper and Lower Bound of Data

Quiz
•
10th Grade - University
14 questions
KĄTY!

Quiz
•
4th Grade - University
10 questions
Complex Numbers

Quiz
•
11th Grade - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade