I am trying to solve the recurrence: T(n) = 2t(n-1) - t(n-2) +5n +7 but without success.
And from here I don't know how to continue?
I am trying to solve the recurrence: T(n) = 2t(n-1) - t(n-2) +5n +7 but without success.
And from here I don't know how to continue?
According to your recurrence equation 2t(n-1) futher breakdown like 2[2t((n-1)-1)+t((n-1)-2)+5(n-1)+7] and for solution of this equation explore recurrence equation solution