0 0 votes Algorithms recurrence-relation + – Sharmila salam 804 views answer comment Share Follow Print See 1 comment 1 1 comment reply Surajit commented May 22, 2017 reply Follow flag Substitute n = 2^m ...then subsitute T(2^m) = S(m)..then apply masters theorem. 0 0 replyShare Please log in or register to add a comment.
0 0 votes T(n) = T(sqrt n) +1 let n = 2m .........................(1) T(2m) = T(2m/2) + 1 assume T(2m) = S(m) so S(m) = S(m/2) + 1 apply master theorem S(m) = theeta (log m) from (1) so T(n) = theeta (log log n) pawan kumarln answered May 22, 2017 pawan kumarln comment Share Follow 0 reply Please log in or register to add a comment.