0 votes 0 votes How to write recurrence relation for , possible binary sequence of size n ? Algorithms recurrence-relation algorithms + – set2018 asked Sep 29, 2017 • edited Sep 29, 2017 by set2018 set2018 328 views answer comment Share Follow See all 2 Comments See all 2 2 Comments reply rahul sharma 5 commented Sep 29, 2017 reply Follow Share Not able to view question 0 votes 0 votes Shubhanshu commented Sep 29, 2017 reply Follow Share T(n) = No of possible binary sequence for n bits T(n) = 2(Tn-1) Base condition T(1) = 2. 1 votes 1 votes Please log in or register to add a comment.
Best answer 2 votes 2 votes here by size means by length n so minimum 1 bit we can represent 0 or 1 total 2 elements form 2 bit we can represent 00,01,10,11 total 4 element so T(n) = $\left\{\begin{matrix} 2T(n-1) & n>1 \\ 2 & n=1 \end{matrix}\right.$ Tesla! answered Sep 29, 2017 • selected Sep 29, 2017 by set2018 Tesla! comment Share Follow See all 0 reply Please log in or register to add a comment.