Homework

  1. What does Big-O notation represent? How does it relate to program performance?

  2. Most of the run-time for a given program results from an O(n3) algorithm, where n represents the number of inputs. The program takes 10 seconds to process 1000 inputs. About how long will it take to process 5000 inputs?

  3. What is the order of operations for a linear search?

  4. What is the order of operations for a binary search?

  5. What is the order of operations for a matrix addition (n x n matrix).