
Recurrence Relations and Master Theorem Quiz
Authored by Seven Castueras
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?