InterviewSolution
Saved Bookmarks
| 1. |
What is the recurrence relation for the linear search recursive algorithm?(a) T(n-2)+c(b) 2T(n-1)+c(c) T(n-1)+c(d) T(n+1)+cI got this question in semester exam.Query is from Searching in portion Searching of Data Structures & Algorithms II |
|
Answer» Right answer is (c) T(n-1)+c |
|