
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
Solve the recurrence relation T(n)=2T(n/4)+ n^2 using the Master's Theorem. What is the time complexity of T(n)?
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 Wayground
20 questions
DATA STRUCTUIR Quiz1 (AIML)

Quiz
•
University
10 questions
Quick Sort

Quiz
•
University
17 questions
Quiz de Programação em C

Quiz
•
University
11 questions
CodeQuest TechTopia 2025-26

Quiz
•
University
10 questions
Quizzi bài 29 Tin học 10

Quiz
•
10th Grade - University
15 questions
QUIZ 01 -DAA

Quiz
•
University
15 questions
Challenging Algorithms and Sorting Concepts

Quiz
•
University
10 questions
HTML

Quiz
•
12th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University