Computer Sciences > GATE 2026 SET-2 > Algorithms
Which of the following can be recurrence relation(s) corresponding to an algorithm with time complexity Θ(n)?
A
T(n) = T(n-1) + 1, T(1) = 1
B
T(n) = 2T(n/2) + 1, T(1) = 1
C
T(n) = 2T(n/2) + n, T(1) = 1
D
T(n) = T(n-1) + n, T(1) = 1

Correct : a,b

Similar Questions

Match the following (P) Prim’s algorithm for minimum spanning tree (i) Backtracking (Q) Floyd-Warshall algorithm fo...
#82 MCQ
Consider the following table Algorithms Design Paradigms (P) Kruskal (i) Divide and Conquer...
#203 MCQ
Consider functions Function 1 and Function 2 expressed in pseudocode as follows: Let f1(n) and f2(n) denote the number of times the statement "x = x + 1" is...
#989 MSQ

Related Topics

No tags found

Unique Visitor Count

Total Unique Visitors

Loading......