CMSI 2130 - Algorithms & Analysis

Professor Andrew Forney • Andrew.Forney[at]lmu.edu • Fall 2026


Welcome to CMSI-2130 9 / 1 / 26

If you're reading this then you've successfully found the course page for CMSI 2130! Check this page frequently for announcements that are relevant to the course, including notes, homework assignments, and practice problems.

First things first, please read through the course syllabus located here (or in the Materials tab above).


Lecture Notes
Date Lecture Subject
Lecture 13-1
11 / 24 / 26
Taking Notes from Jack and Jill
Local Search, Hill Climbing, Simulated Annealing, and Genetic Algorithms -- all in one quivering mass!

  Lecture Video (13-1) (recording from Sp26 because no one showed up, lul, thanks GTA 6)
Lecture 11-2
11 / 12 / 26
Graphs are Constraining
Ordering and Structure heuristics for CSPs!

  Lecture Video (12-2)
  Lecture Video (12-1)
  Lecture Video (11-2)
Lecture 10-2
11 / 5 / 26
Turning up the AC
Filtering, constraint propagation, and AC-3 make their grand debut!

  Lecture Video (11-1)
  Lecture Video (10-2)
Lecture 10-1
11 / 3 / 26
Coloring Books for Computer Scientists
Introduction to Constraint Satisfaction Problems (CSPs): map coloring never looked so technical!

  Lecture Video (10-1) (recording from Sp26, out sick :( -- ignore intro slide deadlines)
Lecture 9-1
10 / 27 / 26
In Not So Many Words
Greedy programming gets its day in the sun with a look at compression and Huffman Coding!

  Lecture Video (9-2)
  Lecture Video (9-1)
Lecture 8-1
10 / 20 / 26
Blooming Imaginations
Bloom filters -- data structures meet probabilistic programming!

  Lecture Video (8-2)
  Lecture Video (8-1)
Lecture 7-1
10 / 13 / 26
The Red Squiggly Underline - A Biography
The magic behind the foundations of spelling correctors and checkers!

  Lecture Video (7-1)
Lecture 6-1
10 / 6 / 26
Changing from Changemaking
Another example of Dynamic Programming on the LCS problem -- good for comparison!

  Lecture Video (6-2)
  Lecture Video (6-1)
Lecture 5-1
9 / 29 / 26
From A* to Coinstar
Changemaking makes another appearance in this discussion of Dynamic Programming!

  Lecture Video (5-2)
  Lecture Video (5-1)
Lecture 3-2
9 / 17 / 26
Foiled Again!
Adversarial search and α-β pruning!

  Lecture Video (4-2)
  Lecture Video (4-1)
  Lecture Video (3-2)
Lecture 2-2
9 / 10 / 26
Here-istics
Best-First, Informed search, and heuristics (get it? heuristics here? hereistics?).

  Lecture Video (3-1)
  Lecture Video (2-2)
Lecture 1-1
9 / 1 / 26
Search and Ye Shall (Hopefully) Find
Problem solving, uninformed searches, and memoization!

  Lecture Video (2-1)
  Lecture Video (1-2)
  Lecture Video (1-1)

To access recitation recordings, see the following folder:

Recitation Recordings


Homework
Number Date Assigned Date Due (@ midnight)
Homework 5 - Arc Nemesis 11 / 10 / 24 12 / 8 / 24
Homework 4 - Huff and Puff 10 / 29 / 26 12 / 1 / 26
Homework 3 - Distle'd Knowledge
  Grading Tests [.zip]*
10 / 13 / 26 11 / 10 / 26
Homework 2 - Tic'd Off
  Grading Tests [.zip]*
9 / 19 / 26 10 / 20 / 26
Homework 1 - A*-y Night
 Grading Tests [.py]*
9 / 10 / 26 9 / 29 / 26

* To execute grading tests, place all files in the given zip into your own src folder, then run the grading unit test file using pytest name_of_grading_tests.py. If any config files are included (e.g., pytest.ini, include these in the directory as well)


Classwork
Number Date Assigned Date Due (@ midnight)
[Bonus] Classwork 7 - Fetching Pails of Water
12 / 1 / 26 12 / 10 / 26
Classwork 6 - The Queen's Domain
 Solution
11 / 17 / 26 11 / 24 / 26
Classwork 5 - Trie, Trie Again
 Solution
10 / 29 / 26 11 / 5 / 26
[Bonus] Classwork 4 - Weighting Tables
 Solution
10 / 8 / 26 10 / 13 / 26 (no late submissions accepted)
Classwork 3 - Mini Classwork, Maximal Gains
 Solution [.pdf]
9 / 24 / 26 10 / 1 / 26
Classwork 2 - A Breadth of Fresh Air
 Solution [.py]
9 / 8 / 26 9 / 15 / 26
Classwork 1 - Finding your (algo)Rhythm
 Solution [.py]
9 / 1 / 26 9 / 8 / 26