Algorithms in the Real World (Spring 2021)

Welcome to CS 137! We’re super excited to have you here this term!


Due Soon


Wellness and Inclusion

It is very important to us that you succeed in CS 137. We provide many extra resources to help you. Adam and the TAs hold many office hours, and we have a message board called Ed Discussion.

It is also very important to us that you maintain your mental wellness throughout the course. A few points are not worth losing sleep over. Everyone on the course staff is available to chat, and you can always attend office hours for a non-academic conversation if necessary. You can also visit the counseling center if you find you need help beyond the course staff. If you have a temporary health condition or permanent disability (either mental health or physical health related), you should contact accessibility services if you have not already. Additionally, if there is something we can do to make your experience better, please let us know.

Diversity, inclusion, and belonging are all core values of this course. All participants in this course must be treated with respect by other members of the community in accordance with the honor code. If you feel unwelcome or unsafe in any way, no matter how minor, we encourage you to talk to Adam or one of the Deans. We view these sorts of honor code violations as completely unacceptable, and we take them very seriously.

Course Staff


Book an appointment!
Annenberg 115
(626) 395-1765

Teaching Assistants

Ethan Ordentlich


The following is a list of handouts that you might find helpful throughout the course. We’ve categorized them by when they are useful.


Syllabus – an overview of the course and administrative information

Collaboration Policy – the course collaboration policy


Prefix-Free Codes – an introduction to lossless compression

Huffman Codes – an introduction to huffman codes

More Huffman & LZ77 – more huffman codes, run-length encoding, and lz77

RSA & Big Integers

RSA Introduction – an introduction to RSA

Big Integers – an introduction to the algorithms used on multi-precision integers

Primality Testing – an introduction to Miller-Rabin Primality Testing

RSA Key Generation – a description of the RSA key format that is generated by key generation utilities