Lab 7: Big-O Runtime Analysis

Due Date and Submission Requirements


The goal of this lab is:


Directions

You will determine the running time of four different algorithms in this lab. For each operation/line of code in the algorithm, you must find the time complexity/running time of that operation (just like we did in class and on the midterm exam). Then you must state the total running time of the algorithm using Big O notation. In your final answer, you should drop all non-dominant factors and multiplicative factors. If n is part of your running time, make sure you mention what n is.

You can print out the lab instructions below and fill our your solution by hand and scan it as a pdf, or you can fill it out digitally (pdf editor, word, document editor) and submit it as a pdf.

Lab 7 Algorithms

Grading (10 points)