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

  1. Lab 1 -- Java Review
  2. Problem Set 1 -- Pre- and Postconditions
  3. Problem Set 2 -- Proof
  4. Lab 2 -- Introduction to Experimentation
  5. Problem Set 3 -- Logic
  6. Lab 3 -- Recursion
  7. Problem Set 4 -- Induction
  8. Problem Set 5 -- Induction and Algorithms
  9. Lab 4 -- Debugging
  10. Problem Set 6 -- More Induction and Algorithms
  11. Problem Set 7 -- Recurrence Relations
  12. Lab 5 -- Asymptotic Execution Times
  13. Problem Set 8 -- The Master Theorem
  14. Lab 6 -- Loop Invariants
  15. Problem Set 9 -- Proofs about Loops
  16. Lab 7 -- Θ(n2) Sorting Algorithms
  17. Lab 8 -- Quicksort
  18. Problem Set 10 -- Analysis of Loops
  19. Lab 9 -- Θ(nlogn) Sorting Algorithms
  20. Problem Set 11 -- Algorithm Analysis with the Master Theorem
  21. Lab 10 -- Testing
  22. Problem Set 12 -- Trees
  23. Lab 11 -- Tree Height
  24. Lab 12 -- A "Dictionary" Data Structure
  25. Problem Set 13 -- Heaps
  26. Problem Set 14 -- Trees in Arrays
  27. Lab 13 -- Heapsort