Loading [MathJax]/jax/output/CommonHTML/fonts/TeX/fontdata.js

Evaluating Algorithms

Nathan Sprague

8/31/20

Evaluating Algorithms

A Story...

Take-Home Messages (1/2)

Take-Home Messages (2/2)

If not time, then what?

Basic Operations

Socrative Quiz...

log21=0

log22=1

log24=2

log28=3

...

log24,000,000,000=??

  1. about 6
  2. about 32
  3. about 1,024
  4. about 10,000
  5. about 1,000,000

Let's Review Growth Functions...

Socrative Quiz...

Consider the following (very) informal definitions:

Assume that T(n) is a function that describes the number of operations required for program A. Select the first true statement from the following list.

  1. Program A is good enough as long as T(n)n!
  2. Program A is good enough as long as T(n)2n
  3. Program A is good enough as long as T(n)n3
  4. Program A is good enough as long as T(n)n2
  5. Program A is good enough as long as T(n)nlogn
  6. Program A is good enough as long as T(n)n
  7. Program A is good enough as long as T(n)1

Socrative Quiz...

Consider the following (very) informal definitions:

Assume that T(n) is a function that describes the number of operations required for program A. Select the first true statement from the following list.

  1. Program A is not totally useless as long as T(n)n!
  2. Program A is not totally useless as long as T(n)2n
  3. Program A is not totally useless as long as T(n)n3
  4. Program A is not totally useless as long as T(n)n2
  5. Program A is not totally useless as long as T(n)nlogn
  6. Program A is not totally useless as long as T(n)n
  7. Program A is not totally useless as long as T(n)1