1 votes 1 votes Derive the running time of the binary search algorithm. If I modify binary search to break the interval size into 1/3, 2/3 rather than 1/2, 1/2, then what is the worst case running time? Algorithms binary-search time-complexity + – Aboveallplayer asked Dec 1, 2016 • retagged Jun 28, 2022 by makhdoom ghaya Aboveallplayer 906 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
3 votes 3 votes I think time complexity for both "actual binary search and modified binary search will b asymptotically same " consider recurrence relation for worst case of modified b.s. T(n)= c if n=1 =T(2n/3) +c if n>1 after solving r.r. ans= log3/2n saurabh rai answered Dec 1, 2016 saurabh rai comment Share Follow See 1 comment See all 1 1 comment reply Divy Kala commented Jun 8, 2019 reply Follow Share Which is just O(lg2 (n) ) 0 votes 0 votes Please log in or register to add a comment.