Advance data-structures

Quiz
•
Business
•
University
•
Hard
Eben Sophia Paul
Used 19+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Dynamic Programming is often used for (choose all that apply):
Optimization problems that involve making a choice that leave one or more subproblems to be solved.
Problems previously solved using divide and conquer that have over lapping subproblems
Non polynomial solution problems
Subproblems where resources are shared
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
.................technique doesn't give guarantee that our solution is optimal
greedy method
dynamic programming approach
backtracking
branch and bound
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following problems is equivalent to the 0-1 Knapsack problem?
You are given a bag that can carry a maximum weight of W. You are given N items which have a weight of {w1, w2, w3,…., wn} and a value of {v1, v2, v3,…., vn}. You can break the items into smaller pieces. Choose the items in such a way that you get the maximum value
You are studying for an exam and you have to study N questions. The questions take {t1, t2, t3,…., tn} time(in hours) and carry {m1, m2, m3,…., mn} marks. You can study for a maximum of T hours. You can either study a question or leave it. Choose the questions in such a way that your score is maximized
You are given infinite coins of denominations {v1, v2, v3,….., vn} and a sum S. You have to find the minimum number of coins required to get the sum S
None of the mentioned
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If b is the source vertex, what is the minimum cost to reach f vertex?
8
9
6
4
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
...........................technique is used by solving optimization problems
divide and conquer
greedy method
dynamic programming
both b and c
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is/are property/properties of a dynamic programming problem?
Optimal substructure
Overlapping subproblems
Greedy approach
d) Both optimal substructure and overlapping subproblems
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
KUIS MEI 2023 AMCS

Quiz
•
University
15 questions
Building ecom presence II

Quiz
•
University
21 questions
MCQ_1

Quiz
•
University
19 questions
MSE Week 3

Quiz
•
University
20 questions
IAE ORG THR S5 Contingency Approaches: Adapting Org to Contexts

Quiz
•
University
20 questions
QUIZIZZ_POM_Orientation in Organizing_04042023

Quiz
•
University
20 questions
Managing and E-Business Quiz

Quiz
•
University
16 questions
Quality ch 1 - Total quality

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade