Embed presentation
Downloaded 20 times





![Backward substitution:
M(n)=M(n-1)+1
M(n)=[M(n-2)+1]+1
=M(n-2)+2
M(n)=[M(n-3)+1]+2
=M(n-3)+3
M(n)=M(n-i)+i](https://image.slidesharecdn.com/mathematicalan-wpsoffice1-210417101846/85/Mathematical-Analysis-of-Recursive-Algorithm-6-320.jpg)


The document outlines a methodical approach for analyzing recursive algorithms, particularly through the example of the factorial function. It details steps for determining input size, identifying basic operations, establishing recursive relations, and solving them using substitution methods. The analysis concludes with the time complexity of the recursive algorithm being O(n).





![Backward substitution:
M(n)=M(n-1)+1
M(n)=[M(n-2)+1]+1
=M(n-2)+2
M(n)=[M(n-3)+1]+2
=M(n-3)+3
M(n)=M(n-i)+i](https://image.slidesharecdn.com/mathematicalan-wpsoffice1-210417101846/85/Mathematical-Analysis-of-Recursive-Algorithm-6-320.jpg)

