DATASTRUCTURE AND ALGORITHM GATE NET MCQ SET – 9
The recurrence relation that arises in relation with the complexity of binary search is T(n)=T(n/2)+k, where k is constant T(n)=2T(n/2)+k, where k is constant T(n)=T(n/2)+log(n) T(n)=T(n/2)+n The running time T(n), where `n’ is the input size of a recursive algorithm is given as followsT(n)=c+T(n-1),if n>1 d, if n≤ 1 […]