SUNY Geneseo Department of Computer Science
Exercises and Such
CSci 240, Spring 2007
Prof. Doug Baldwin
Last updated April 23, 2007
These are the assignments, exams, and related material for CSci 240 (Foundations of Algorithms).
Most items are HTML documents that can be read on-line; a few may be in other formats; these you can download from
here, to read separately.
Available Exercises
- Lab 1 -- Java Review
- Problem Set 1 -- Pre- and Postconditions
- Problem Set 2 -- Proof
- Lab 2 -- Introduction to Experimentation
- Problem Set 3 -- Logic
- Lab 3 -- Recursion
- Problem Set 4 -- Induction
- Problem Set 5 -- Induction and Algorithms
- Lab 4 -- Debugging
- Problem Set 6 -- More Induction and Algorithms
- Problem Set 7 -- Recurrence Relations
- Lab 5 -- Asymptotic Execution Times
- Problem Set 8 -- The Master Theorem
- Lab 6 -- Loop Invariants
- Problem Set 9 -- Proofs about Loops
- Lab 7 -- Θ(n2) Sorting Algorithms
- Lab 8 -- Quicksort
- Problem Set 10 -- Analysis of Loops
- Lab 9 -- Θ(nlogn) Sorting Algorithms
- Problem Set 11 -- Algorithm Analysis with the Master Theorem
- Lab 10 -- Testing
- Problem Set 12 -- Trees
- Lab 11 -- Tree Height
- Lab 12 -- A "Dictionary" Data Structure
- Problem Set 13 -- Heaps
- Problem Set 14 -- Trees in Arrays
- Lab 13 -- Heapsort