DSA Lab 2 task
DSA Lab 2 task
Lab Objective:
Show Performance Analysis (Time Complexity and Space Complexity)
Make a program of recursive algorithms of Fibonacci series and Factorial numbers.
Abstract:
This lab focuses on analyzing the performance of algorithms using the concepts of time complexity
and space complexity. Understanding how algorithms perform under different inputs is crucial for
designing efficient programs. The lab tasks involve implementing recursive algorithms for Fibonacci
series and Factorial calculation, which help illustrate how time and space usage can vary
significantly depending on the algorithm design. The lab also highlights the concept of recursion and
its implications in terms of memory and computational cost.
Lab Tasks:
Conclusion:
This lab provided hands-on experience in analyzing the performance of recursive algorithms through
time and space complexity. By implementing Fibonacci and factorial computations, we observed how
recursive calls increase memory usage and affect execution time. This exercise reinforced the
importance of choosing efficient algorithmic approaches and understanding computational costs when
solving problems.