Lab 1: Introduction to Empirical Analysis of Algorithms
Assigned: Thursday, January 24
Due: Thursday, February 7
Purpose
- To have a deep understanding of iteration and recursion.
- To learn the empirical evaluation of the algorithms
Description
In the class, we have discussed both recursive and iterative algorithms to calculate Fibonacci numbers, and the analyze of their time efficiency. In this lab, you will evaluate the efficiency of both algorithms empirically. You are required to implement both algorithms using C, design an experiment to measure the time overhead of the algorithms, and analyze the experiment results. Here are general steps that you need to perform empirical evaluation of the algorithms.
Submission
- A hard copy of the source code and output of all your programs. You should use command ``a2ps'' or ``enscript -2rG'' to print them in two columns.
- A hard copy of your lab report written in Latex. It should include the following contents:
- Section 1 Introduction: a brief description of the problem and the purpose of the lab.
- Section 2 Implementation: a brief description of how to implement the algorithms to calculate Fibonacci numbers, and how to measure the time overhead.
- Section 3 Experiment: a detailed description of your experiment setup, performance metrics, sample input, and analysis of experiment result.
- Section 4 Conclusion
Here is a sample Latex file of the lab report.


Link to this Page