CS 70 Midterm Review

Number Sets and Notation

Subsets

Significant Sets

Screen Shot 2021-10-14 at 12.02.48 PM

Propositions

Proofs

Types

Tips

Example

Prove that there are no positive integer solutions that satisfy the equation: \(x^2 - y^2 = 1\)

Induction

Steps

Key Idea

Strong Induction

The Game of Nim

==FILL IN==

Interesting Sequence

Screen Shot 2021-10-10 at 12.36.19 PM

How to solve: strengthen hypothesis!

Stable Matching

Overview

Propose and Reject Algorithm

Notes about SMP and Propose-and-Reject

Graphs

Summary

  Can Repeat Edges Cannot Repeat Edges
Start and End at Diff Places Walk Path
Start and End at Same Places Tour Cycle

Graphs

Trees

Planarity

Hypercubes

Screen Shot 2021-10-11 at 4.55.13 PM

Modular Arithmetic

Properties

Example 1

==FILL IN==

Extended Euclid Example

==FILL IN==

Fermat’s Little Theorem (FLT)

Chinese Remainder Theorem

Chinese Remainder Theorem

RSA

Terminology

Example

==practice this bruh==

Polynomials

Terminology

Properties

Interpolation

Lagrange Interpolation

==REVIEW AND PRACTICE THIS==

Example

Polynomial Applications

Secret Sharing

==pick up at slide 145!==

Counting

Sampling k items from n choices:

Order matters

Order doesn’t matter

Example

GCD Algorithm