2013 December 2,
Carleton College, Fall 2013, Prof. Joshua R. Davis, , Laird 205A, x4473
This course addresses two fundamental questions in computer science: What can computers do? And how much time and space do they require, to do it? While answering these questions, if only partially, we will touch on various fascinating topics in philosophy, linguistics, programming languages, etc. Your work will be a mixture of proofs and 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 CS 202 (Mathematics of Computer Science). Math 236 may be substituted for CS 202. Talk to me, if you are concerned about your background. Our class meets in CMC 210 during period 2A (MonWed 9:50-11:00, Fri 9:40-10:40). My office hours are
If you can't make office hours, then schedule an appointment with me. The course materials are
Final grades (A, B, C, etc.) are assigned according to an approximate curving process. By this I mean that there are no predetermined percentages (90%, 80%, 70%, 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. If you visit me in my office, then I am happy 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 Mondays). 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. Instead of handing in the packet, send me e-mail, by the due date, declaring that you are using your late pass. No explanation is necessary. Your packet is now due when the next packet is due. When you submit your late packet, write "Late Pass Used" prominently at the top. Once you have used your late pass, no late assignments are accepted, except in extreme circumstances that are truly beyond your control.
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:
This schedule is tentative. It will be adjusted as we go along. To help you decode the schedule, here is an example. On Day 02 we discuss deterministic finite automata, which are covered in Section 1.1 of our textbook. You have homework called "Day 02", which you hand in on Day 04.
Date | Day | Topic | Assignment | Due | Reading | Notes |
---|---|---|---|---|---|---|
M 09/16 | 01 | introduction | Day 01 | 01 | 0.1-0.4 | sosupersum.py |
W 09/18 | 02 | deterministic finite automata | Day 02 | 04 | 1.1 | |
F 09/20 | 03 | nondeterministic finite automata | Day 03 | 07 | 1.2 | |
M 09/23 | 04 | regular expressions | Day 04 | 07 | 1.3 | Python REs |
W 09/25 | 05 | pumping lemma | Day 05 | 07 | 1.4 | Radiolab: Loops |
F 09/27 | 06 | catching up | Day 06 | 10 | Stack Exchange: Recursion or Loops? | |
M 09/30 | 07 | context-free grammars | Day 07 | 10 | 2.1 | |
W 10/02 | 08 | pushdown automata | Day 08 | 10 | 2.2 | |
F 10/04 | 09 | pumping lemma | 2.30d, 2.31, 2.36 | 13 | 2.3 | |
M 10/07 | 10 | catching up | ||||
W 10/09 | 11 | Turing machines | EXAM A | 12 | 3.1 | Wikipedia: Alan Turing |
F 10/11 | 12 | Turing machines | Day 12 | 16 | 3.2 | |
M 10/14 | 13 | Turing machines | 3.15bcde, 3.16bcd | 16 | 3.3 | |
W 10/16 | 14 | Turing machines | Day 14 | 16 | 4.1 | |
F 10/18 | 15 | HALT is undecidable | Day 15 | 18 | 4.2 | |
M 10/21 | MIDTERM BREAK | |||||
W 10/23 | 16 | Rice's theorem | Day 16 | 18 | 5.1 | |
F 10/25 | 17 | time complexity | Day 17 | 21 | 7.1 | |
M 10/28 | 18 | REVIEW DAY | ||||
W 10/30 | 19 | EXAM B | ||||
F 11/01 | 20 | time complexity | 7.6, 7.7 | 24 | 7.1 | |
M 11/04 | 21 | time complexity | 7.4, 7.14 | 24 | 7.2 | |
W 11/06 | 22 | time complexity | Day 22 | 24 | 7.3 | |
F 11/08 | 23 | SAT is NP-complete | 7.4 | |||
M 11/11 | 24 | space complexity | 7.24, 7.25 | 27 | 8.0-8.1 | |
W 11/13 | 25 | NPSPACE = PSPACE | Day 25 | 27 | 8.2 | |
F 11/15 | 26 | TQBF is PSPACE-complete | 8.3 | TQBF | ||
M 11/18 | 27 | Kolmogorov complexity | EXAM C | 28 | 6.4 | |
W 11/20 | 28 | Kolmogorov complexity | Day 28 | 6.4 | Kolmogorov | |
S 11/23 | FINAL EXAM 8:30AM-11:00AM |