Introduction to the Analysis of Algorithms
Introduction to the Analysis of Algorithms
Lecture #2: Introduction to the Analysis of Algorithms I — Correctness of Simple Recursive Algorithms
Lecture Notes
Questions for Review
Python implementation of the algorithm considered in this lecture
Java implementation of the algorithm considered in this lecture
Tutorial Exercise #3: Introduction to the Correctness of Algorithms I
Problems To Be Solved
Python implementation of the algorithm considered in this exercise
Java implementation of the algorithm considered in this exercise
Lecture #3: Introduction to the Correctness of Algorithms II — Correctness of Simple Algorithms with a while Loop
Lecture Notes
Questions for Review
Additional Reading: Two Useful Theorems about while Loops
Python implementation of the algorithm considered in this lecture
Java implementation of the algorithm considered in this lecture
Tutorial Exercise #4: Introduction to the Correctness of Algorithms II
Problems To Be Solved
Python implementation of the algorithm considered in this exercise
Java implementation of the algorithm considered in this exercise
Lecture #4: Introduction to the Testing of Programs
Lecture Notes
Questions for Review
Tutorial Exercise #5: Introduction to the Testing of Programs
Problems To Be Solved
Lecture #5: Analyzing the Running Times of Algorithms
Lecture Notes
Questions for Review
Additional Reading: The Logarithmic Cost Criterion
Tutorial Exercise #6: Analyzing the Running Times of Algorithms
Problems To Be Solved
Lecture #6: Asymptotic Notation
Lecture Notes
Questions for Review
Tutorial Exercise #7: Asymptotic Notation
Problems To Be Solved
Assignment #1: Proving the Correctness of Simple Algorithms — and Implementing Them as Java Programs
Problems To Be Solved
Test Files To Be Used with SMacGonagall.java:
test_smacG.java: Unit Tests for the smacG Method
test_SMacGonagall.sh: Shell Script with Tests for the Main Method
Test Files To Be Used with FMacGonagall.java:
test_fmacG.java: Unit Tests for the fmacG Method
test_FMacGonagall.sh: Shell Script with Tests for the Main Method
cpsc 331
computer science
faculty of science
u of c
cpsc 331
introduction
algorithm analysis
basic data structures
& adts
binary search trees
hash tables
searching and sorting
graph algorithms
conclusion
java development
assignments
tests