Multiple Choice
What is the running time of a method with the following recurrence relation: T( n ) = T( n − 1 ) + 2, with T( 0 ) = 1?
A) O( n )
B) O( 2n )
C) O( 1 )
D) O( n2 )
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q12: The running time of a recursive method
Q13: Algorithms with n as the exponent of
Q14: Identify the dominant term and the Big-Oh
Q15: The running time of a method is
Q16: Merge Sort is more efficient than Bubble
Q18: Between Sequential Search or Binary Search, which
Q19: Andre runs an Insertion Sort and a
Q20: Identify the dominant term and Big-Oh for
Q21: A function f (n) is Big-Theta of
Q22: What is the typical running time of