Intro Induction Asymptotic Analysis
Intro Induction Asymptotic Analysis
Computer Algorithms
Introduction
Proof By Induction
Asymptotic notation
The Course
• Grading policy:
Class Test [& Assignments]: 20%
Participation + Class performance: 8%
Final: 72%
The Course
• Format
Three lectures/week
Assignments
o Analysis
o Programming
Tests
Why Study Algorithms?
• Worst case
Provides an upper bound on running time
An absolute guarantee
• Average case
Provides the expected running time
Very useful, but treat with care: what is “average”?
o Random (equally likely) inputs
o Real-life inputs
Asymptotic Analysis
Example: One Loop
Example: Two Loops
Example: Two Nested Loops
Example: Two Nested Loops (II)
The End