Solve the recurrence relation T(n)=2T(n/4)+ n^2 using the Master's Theorem. What is the time complexity of T(n)?

Recurrence Relations and Algorithms Quiz

Quiz
•
Information Technology (IT)
•
University
•
Hard
Yasmin Kandil
Used 4+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
O(n^2 log n)
O(n^2)
O(n log n)
O(n^3)
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Solve the recurrence relation T(n)=3T(n/3)+n using the Master's Theorem. What is the time complexity of T(n)?
O(n log n)
O(n^2)
O(n log^2 n)
O(n)
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Solve the recurrence relation T(n)=8T(n/4)+n^2 using the Master's Theorem. What is the time complexity of T(n)?
O(n^2 log n)
O(n^3)
O(n^2)
O(n log n)
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Solve the recurrence relation T(n)=6T(n/2)+ n^3 using the Master's Theorem. What is the time complexity of T(n)?
O(n^3)
O(n^4)
O(n^3 log n)
O(n^2 log^2 n)
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
You are given coins of denominations {1,3,4}. What is the minimum number of coins required to make a value of 6 using dynamic programming?
2
3
4
6
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
In the Traveling Salesman Problem using dynamic programming, what is the state definition for DP(S,i) where S is a set of visited cities, and i is the current city?
The shortest path from the start to city i.
The shortest path that visits all cities in S and ends at city i.
The longest path that visits all cities in S and ends at city i.
The shortest path from the city i to the end.
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
You are given coins of denominations {1,2,5}. What is the minimum number of coins needed to make a total of 7?
2
3
4
5
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
DSA (QUIZ 5) Priority Queue and Sorting Algorithms Quiz

Quiz
•
University
20 questions
DS 1 Long quiz

Quiz
•
University
10 questions
Hash Table and Sorting Algorithms Quiz

Quiz
•
University
20 questions
HAPPY DSA

Quiz
•
University
11 questions
Daily Scrum

Quiz
•
University
20 questions
Map and Sorting Algorithms Quiz

Quiz
•
University
10 questions
CODE DEBUGGING EVENT

Quiz
•
University
15 questions
DSA (QUIZ 7) -Greedy Algorithms and Complexity Analysis

Quiz
•
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