Algorithms

Spring 2017
course
navigation

Jan 31

Questions about anything from the reading or last week's homework?
Finish going over my notes from last time, including discussing

O() details

There are several similar concepts :
What is the difference between

measuring execution speed

count program steps

Put "steps=0" at the top of the program, and "steps+=1" between every line in your code. Then plot steps as a function of n.
Advantages:
Disadvantages:

find elapsed time

Advantages:
Disadvantages:

time vs space

A common theme is that there is a trade off between memory and execution speed ... we'll see examples of this throughout the term.
http://cs.marlboro.edu/ courses/ spring2017/algorithms/ notes/ Jan_31
last modified Tuesday January 31 2017 12:17 am EST