Lab 9: Spooky 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 you say something is O(n) or O(n^2), make sure you state 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 9 Algorithms

Grading (10 points)



Deductions
  • -100000000 if you don't submit your lab as a pdf file