CS 202

Fall 2016

Mathematics of Computer Science

Basic Information

Course Information

This course introduces some of the formal tools of computer science, using a variety of applications as a vehicle. You'll learn how to encode data so that when you scratch the back of a DVD, it still plays just fine; how to distribute "shares" of your floor's PIN so that any five of you can withdraw money from the floor bank account (but no four of you can); how to play chess; and more. Topics that we'll explore along the way include: logic and proofs, number theory, elementary complexity theory and recurrence relations, basic probability, counting techniques, and graphs. We will generally follow the textbook, tentatively in this order of chapters: 3, 4 & 2, 5, 6, 9, 10, 7, and (if there's time) 11.

Grading

There will be 3 midterm exams and no final exam.
Your grade will be determined by a weighted arithmetic mean of component scores:
HomeworkMidterm 1Midterm 2Midterm 3Participation
35%20%20%20%5%

Examinations

The midterm exams will be administered during regularly scheduled class time.

Missing an exam is permitted only for the most compelling reasons. You should obtain my permission in advance to miss an exam. Otherwise, you will be given a 0. If you are excused from taking an exam, you will either be given an oral exam or your other exam scores will be prorated.

Tentative exam dates:

Homework

Homework will be posted and collected electronically on Moodle.

Solutions must be typeset with LaTeX. Some helpful links:

Calendar

To be updated throughout the term; tentative and subject to change.
DayDateAgendaReading
September
0112 Moncourse overview; propositional logicDLN §1, §§3.1–3.2
0214 Wedtruth tables, logical equivalenceDLN §3.3
0316 FriSheffer stroke, predicate logicDLN §3.4
0419 MonquantifiersDLN §3.5, §2.6
0521 WedgamesDLN §§2.1–2.2
0623 FriproofsDLN §4.1, §4.3
0726 Monsets, sequences, functionsDLN §2.3
0828 Wederror-correcting codesDLN §4.2, §4.4
0930 Frimatrices, optimality of Hamming codeDLN §2.4, §4.5
October
1003 Monpolynomials, secret sharing, Reed–Solomon codesDLN §2.5, p.418
1105 Wed
Midterm 1
DLN chapters 1–4
1207 FriinductionDLN §§5.1–5.2
1310 Monstrong inductionDLN §5.3
1412 Wedtriangulations
1514 Frilinear recurrences
17 Mon(midterm break; no class)
1619 WedasymptoticsDLN §§6.1–6.2
1721 Frianalysis of (recursive) algorithms, Master MethodDLN §§6.3–6.5
1824 MoncountingDLN §§9.1–9.2
1926 Wed
Midterm 2
DLN chapters 5–6
2028 Fribinomial coefficientsDLN §9.4
2131 Monother counting principlesDLN §9.3
November
2202 Wedprobability, conditional probabilityDLN §§10.1–10.2
2304 Frirandom variables, expectationDLN §§10.3–10.4
2407 Monnumber theory: modular arithmetic, Euclidean algorithmDLN §§7.1–7.3
2509 Wedcryptography: RSA encryptionDLN §§7.4–7.5
2611 Frigraphs, connectivity, treesDLN §§11.1–11.4
2714 Monmatchings
2816 Wed
Midterm 3
DLN chapters 7, 9–11