Analyzing Code
C++ operations - constant time
consecutive stmts - sum of times
conditionals - sum of branches, condition
loops - sum of iterations
function calls - cost of function body
Above all, use your head!
Previous slide
Next slide
Back to first slide
View graphic version