2018 November 27,
Carleton College, Fall 2018, Joshua R. Davis, , CMC 324, x4095
This course considers two fundamental questions in computer science: First, what can computers do? Second, how much time and space do they require to do it? While addressing these questions we will touch on various fascinating topics in programming languages, information theory, linguistics, philosophy, etc.
Your work will be a mixture of writing proofs, executing algorithms by hand, and writing programs. For example, you will learn how to determine whether a programming problem is solvable by regular expressions, and solve it with them if it is. The official prerequisites for this course are CS 111 (Intro) and either CS 202 (Mathematics of Computer Science) or Math 236. Talk to me if you are concerned about your background.
The course materials are:
Our class meets in Boliou 104 during period 3A (MonWed 11:10-12:20, Fri 12:00-1:00). My office hours are currently
No appointment is needed during office hours; just drop in. If you can't make office hours, then consult my schedule and e-mail me a couple of possible meeting times.
Final grades (A, B, etc.) are assigned according to an approximate curving process. By this I mean that there are no predetermined percentages (90%, 80%, etc.) required for specific grades. The advantage of this system is that student grades don't suffer when I write a difficult exam. The disadvantage is that you cannot compute your own grade. Visit me in my office, if you want me to estimate your current grade for you. The following elements contribute to your final grade.
You are expected to spend about 10 hours per week on this course outside class. Some students need to spend more than 10 hours. If you find yourself spending more than 15 hours, then talk to me.
You are encouraged to work with others on all assignments (but not exams). Work together to figure out the problems/programs, but write/type them up separately, in your own words. You may not copy someone else's work or allow them to copy yours. Presenting someone else's work as your own is an act of Academic Dishonesty. If Carleton College finds you to not to have upheld its Academic Honesty standards in this course, then you will receive an F for this course.
Writing is not just for English and history majors. Written and oral communication skills are essential to every academic discipline, and are highly prized by employers. In this course, your written work is evaluated both for correctness and for presentation. You may find it easier to type your solutions in LaTeX than to edit them by hand.
How much work should you show? Compose your solutions as if the intended audience is your fellow students. By doing so, you show enough detail that your grader can ascertain whether you yourself understand the material. Your solutions should also be self-explanatory. In this course, the required level of rigor in proofs is sometimes unclear. Mimic the book's level of rigor, preferably with explanation and motivation, and with note of any pitfalls in the logic. If a fellow student were to read your solution, she should be convinced that you understand the problem.
Although homework is assigned every day, it is collected only once a week (usually Fridays). When handing in a week's homework, staple your pages into a single packet, in the correct order. Packets that are not stapled are unacceptable. I will not accept packets that are not stapled. Is there a stapler in the classroom? Often not, so staple ahead of time. Is a paper clip okay? No.
Computer files should be submitted in plain text (.txt), PDF (.pdf), or Python (.py) formats only, unless otherwise specified. In particular, Microsoft Word documents are unacceptable. Fortunately, you can "print" any document to PDF easily.
Depending on time constraints in any given week, perhaps not all of your homework will be graded. In order to ensure full credit, do all of the assigned problems.
During the term, you have one free pass to hand in a week's homework packet late, no questions asked. Simply hand in your late packet when the next packet is due, writing "Late Pass Used" prominently at the top of the late packet.
Once you have used your late pass, no late assignments are accepted, except in extreme circumstances that typically involve interventions by physicians or deans.
If some medical condition affects your participation in class or your taking of exams, let me know in the first week of class. You may need to make official arrangements with the Office of Disability Services.
Here is some advice from actual students who have taken this course in the past:
To help you decode the schedule, here is an example. On Day 03 we discuss nondeterministic finite automata. Section 1.2 of our textbook covers that material; read it before or after class, to get another treament. You might also want to read my extra notes nfaDFA.pdf. You have homework called "Day 03", which you hand in on Day 06.
Date | Day | Topic | Assignment | Due | Reading | Notes |
---|---|---|---|---|---|---|
M 09/10 | 01 | introduction | Day 01 | 01, 02 | 0.1-0.4 | soSuperSum.py |
W 09/12 | 02 | deterministic finite automata | Day 02 | 03 | 1.1 | |
F 09/14 | 03 | nondeterministic finite automata | Day 03 | 06 | 1.2 | nfaDFA.pdf |
M 09/17 | 04 | regular expressions | Day 04 | 06 | 1.3 | regExp.pdf |
W 09/19 | 05 | pumping lemma | Day 05 | 09 | 1.4 | Radiolab: Loops (6:40-15:33) |
F 09/21 | 06 | catching up | Day 06 | 09 | ||
M 09/24 | 07 | context-free grammars | Day 07 | 09 | 2.1 | |
W 09/26 | 08 | pushdown automata | Day 08 | 12 | 2.2 | Recursion |
F 09/28 | 09 | pumping lemma | Day 09 | 12 | 2.3 | |
M 10/01 | 10 | Turing machines | Day 10 | 15 | 3.1 | Wikipedia: Alan Turing |
W 10/03 | 11 | Exam A | ||||
F 10/05 | 12 | variants of TMs | Day 12 | 15 | 3.2 | |
M 10/08 | 13 | nondeterminism, decidable examples | 3.15bcde, 3.16bcd | 15 | 3.3, 4.1 | |
W 10/10 | 14 | decidable, undecidable examples | Day 14 | 17 | 4.1 | |
F 10/12 | 15 | undecidable, unrecognizable examples | Day 15 | 17 | 4.2 | |
M 10/15 | Midterm Break | |||||
W 10/17 | 16 | Rice's theorem | Day 16 | 20 | 5.1 | |
F 10/19 | 17 | time complexity | none | 7.1 | ||
M 10/22 | 18 | catching up | Day 18 | 20 | ||
W 10/24 | 19 | polynomial-time problems | 7.6, 7.7 | 23 | 7.2 | |
F 10/26 | 20 | nondeterministic polynomial-time problems | Exam B | 21 | 7.3 | |
M 10/29 | 21 | polynomial-time mapping reducibility | Day 21 | 23 | 7.4 | |
W 10/31 | 22 | SAT is NP-complete | Day 22 | 26 | 7.4 | |
F 11/02 | 23 | NP-completeness | 7.26, 7.27 | 26 | 7.4 | |
M 11/05 | 24 | NPSPACE = PSPACE | 8.4, 8.11 | 26 | 8.1-8.2 | |
W 11/07 | 25 | TQBF is PSPACE-complete | Day 25 | 28 | 8.3 | tqbf.pdf |
F 11/09 | 26 | TQBF is PSPACE-complete | none | 8.3 | ||
M 11/12 | 27 | catching up | none | |||
W 11/14 | 28 | what haven't we learned? | none | 6.4 | this, this, this, ... | |
S 11/18 | Exam C 3:30PM-6:00PM |