
Recurrence Relations and Master Theorem Quiz

Quiz
•
Computers
•
University
•
Easy
Seven Castueras
Used 1+ times
FREE Resource
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is a recurrence relation in the context of algorithm analysis?
A loop-based computation formula
An equation that describes a function in terms of its value on smaller inputs
A statistical method to forecast future values
A function that always returns constant time
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is a divide-and-conquer recurrence form?
T(n) = T(n-1) + 1
T(n) = n + 1
T(n) = aT(n/b) + f(n)
T(n) = T(n-2) + T(n-1)
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the first step in solving a recurrence using the substitution method?
Apply the Master Theorem
Guess the form of the solution
Draw the recursion tree
Solve the base case
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
In solving T(n) = 2T(n/2) + n by substitution, what is a reasonable guess for the solution?
O(n)
O(n^2)
O(n log n)
O(log n)
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What does the recursion tree method primarily help you identify?
The exact runtime of any algorithm
The flowchart of an algorithm
The cost at each level and total cost across recursive levels
The loop structure in recursive calls
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
For the recurrence T(n) = 2T(n/2) + n, what is the cost at each level of the recursion tree?
Halved each level
Constant at each level
Increases exponentially
Remains n at each level
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
In the Master Theorem, what does the function f(n) represent?
The number of recursive calls
The input size
The cost of dividing and combining work
The base case value
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
PROGRAMMING IN PYTHON - UNIT II - TEST 2 - MCQS

Quiz
•
University
18 questions
Cyber EOP - Network Devices By Mr. B

Quiz
•
12th Grade - University
13 questions
Idiomatic Python

Quiz
•
University
16 questions
Linked List and Arrays in JAVA

Quiz
•
University
18 questions
Monster Tutorial

Quiz
•
University
10 questions
คอมพิวเตอร์เบื้องต้น

Quiz
•
University
15 questions
Knowledge Knockout[Quiz Round](2nd-4th years)

Quiz
•
University
16 questions
DS - Linked List - S1

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