CS 70 at UC Berkeley

# Discrete Mathematics and Probability Theory

Lectures: TuTh 12:30-2 pm, 150 Wheeler

### Week 0 Overview

## Propositional Logic, Proofs

### Week 1 Overview

## Induction, Stable Marriage

### Week 2 Overview

## Graph Theory

### Week 3 Overview

## Modular Arithmetic

### Week 4 Overview

## Midterm 1, RSA

### Week 5 Overview

## Polynomials, Error Correcting Codes

## Notes

There is no textbook for this class. Instead, there is a set of fairly comprehensive lecture notes. Make sure you revisit the notes after lecture. Each note may be covered in one or more lectures. See Syllabus for more information.

- Note 0: Review of Sets, Notation (PDF)
- Note 1: Propositional Logic (PDF)
- Note 2: Proofs (PDF)
- Note 3: Induction (PDF)
- Note 4: Stable Marriage (PDF)
- Note 5: Graph Theory (PDF)
- Note 6: Modular Arithmetic (PDF)
- Note 7: Bijections and RSA (PDF)
- Note 8: Polynomials (PDF)
- Note 9: Error Correcting Codes (PDF)
- Note 10: Infinity and Uncountability (PDF)
- Note 11: Self-Reference and Uncomputability (PDF)
- Note 12: Counting (PDF)
- Note 13: Introduction to Discrete Probability (PDF)
- Note 14: Conditional Probability (PDF)
- Note 15: Two Killer Applications (PDF)
- Note 16: Random Variables: Distribution and Expectation (PDF)
- Note 17: Variance (PDF)
- Note 18: Chebyshev's Inequality (PDF)
- Note 19: Some Important Distributions (PDF)
- Note 20: Continuous Probability (PDF)
- Note 24: Markov Chains (PDF)
- Note 25a: Review of Probability (PDF)
- Note 25b: Probability: An Overview (PDF)
- Note 26: Estimation (PDF)

## Discussions

The discussion sections will not cover new material, but rather will give you additional practice solving problems. You can attend any discussion section you like. However, if there are fewer desks than students, then students who are officially enrolled in that section will get seating priority. See Syllabus for more information.

- Discussion 00a: Propositional Logic (solution)
- Discussion 00b: Proofs (solution)
- Discussion 01a: Induction (solution)
- Discussion 01b: Stable Marriage (solution)
- Discussion 02a: Graph Theory I (solution)
- Discussion 02b: Graph Theory II (solution)
- Discussion 03a: Modular Arithmetic I (solution)
- Discussion 03b: Modular Arithmetic II, Bijections (solution)
- Discussion 04b: RSA (solution)
- Discussion 05a: Polynomials, Secret Sharing (solution)
- Discussion 05b: Error-Correcting Codes, Berlekamp Welch
- Discussion 06a: Error-Correcting Codes
- Discussion 06b: Countability, Computability
- Discussion 07a: Counting, Combinatorial Proofs
- Discussion 07b: Probability Spaces
- Discussion 08a: Conditional Probability, Birthday Paradox, Bayes Rule
- Discussion 08b: Bayes Rule, Independence, Binomial Distribution
- Discussion 09b: Binomial Distribution, Expectation
- Discussion 10a: Distributions, Variance
- Discussion 10b: Variance, Joint Distributions
- Discussion 11a: Variance, Continuous Probability I
- Discussion 11b: Continuous Probability II
- Discussion 12a: Continuous Probability III
- Discussion 12b: Gaussians, Inequalities
- Discussion 13a: CLT, Covariance
- Discussion 14a: WLLN, Regression
- Discussion 14b: Markov Chains, Fun

## Homeworks

All homeworks are graded for accuracy and it is highly-recommended that you do them. Your lowest **two** homework scores will be dropped, but these drops should be reserved for emergencies. **The TeX files we provide are not meant to be compiled. They are just provided as a reference.** See Syllabus for more information.

- Homework 00: Course Logistics (TeX) (solution)
- Homework 01: Propositional Logic, Proofs, Induction (TeX) (solution)
- Homework 02: Induction, Stable Marriage, Graph Theory (TeX) (solution)
- Homework 03: Graph Theory, Modular Arithmetic (TeX) (solution)
- Homework 04: Modular Arithmetic (TeX) (solution)
- Homework 05: RSA, Polynomials (TeX)
- Homework 06: Polynomials, Error-Correcting Codes
- Homework 07: Countability, Computability, Counting
- Homework 08: Combinatorial Proofs, Probability
- Homework 09: Random Variables, Distributions
- Homework 10: Expectation, Distributions
- Homework 11: Variance, Continuous Probability
- Homework 12: Continuous Probability
- Homework 13: Gaussians, CLT, Regression

## Lecture Slides

- Lecture 1 (full) (6up): Introduction, Propositional Logic
- Lecture 2 (full) (6up): Proofs/Induction
- Lecture 3 (full) (6up): Induction.
- Lecture 4 (full) (6up): Induction/Stable Marriage
- Lecture 5 (full) (6up): Graphs
- Lecture 6 (full) (6up): More Graphs
- Lecture 7 (full) (6up): Modular Arithmetic
- Lecture 8 (full) (6up): Euclid/CRT/MT Review
- Lecture 9 (full) (6up): RSA
- Lecture 10 (full) (6up): Secrets and Errors (Draft)
- Lecture 11:
- Lecture 12:
- Lecture 13:
- Lecture 14:
- Lecture 15:
- Lecture 16:
- Lecture 17:
- Lecture 18:
- Lecture 19:
- Lecture 20:
- Lecture 21:
- Lecture 22:
- Lecture 23:
- Lecture 24:
- Lecture 25:
- Lecture 26: