retagged by
1,802 views
1 votes
1 votes

Consider the variation of the binary search algorithm so that it splits the list into not only into two sets of almost equal sizes but into two sets of size approximately one-thirds and Two-third. What is the recurrence equation for this search in worst-case?

  1. $T(n) = T(n/2) + 1$
  2. $T(n) = 2T(n/2) + 1$
  3. $T(n) = T(n/3) + 1$
  4. $T(n) = 2T(n/3) + 1$
retagged by

2 Answers

Related questions

0 votes
0 votes
1 answer
1
syncronizing asked Sep 7, 2018
644 views
T(n) = T(root(n)) + n where n>=2Time complexity ?
2 votes
2 votes
1 answer
2
Chirag arora asked Nov 19, 2017
305 views
T(n)= T(n-1) + log nAns theta( n log n)Facing problem while solving..Tell me the valid source also to practice and learn .
0 votes
0 votes
1 answer
3
gate_forum asked Jan 13, 2019
497 views
O(n)O(Log n)O(Log log n)none
2 votes
2 votes
1 answer
4