This page, http://www.cs.uiowa.edu/~hzhang/c135/, is always under construction.
CS4330 Theory of Computation, Spring 2017
Prerequisite: C or better in Algorithms (CS:3330) or its equivalent
11:00-12:15 TuTh, 213 E120 AJB
Makeup Lectures on March 8:
3:30-5:00pm: MLH 217
7:30-9:00pm: MLH 214
Goals and Objectives
This course is a theoretic exploration of computing devices.
Some of the questions we ask and attempt to answer are
the following. Are there problems that cannot be solved on any
computing device? How does one determine if a given problem can or cannot be
computationally solved? If we place bounds on the resources (time and
space) available to a computer, then what can be said about which
problems can and which problems cannot be solved on a computer? How
does the power of a computer change, if it has access to random bits?
In attempting to answer these questions we will study the following
- Computation models: Finite State Automata.
- Regular Expressions and Regular Grammars.
- Context-free Grammars and Pushdown Automata.
- Computation models: Turing machines (TM).
- Turing-decidable and Turing-recognizable languages.
- Enhancements of TMs: multi-tape TMs, non-deterministic TMs.
Equivalence of these and the standard TM.
- Diagonalization. Acceptance problem is undecidable;
Acceptance problem is recognizable; the complement of the Acceptance problem is unrecognizable.
- Reductions. Examples of other undecidable languages. Rice's theorem. Post's Correspondence Problem (PCP) is undecidable.
- Running time of Turing Machines. The classes P, NP, NP-hard, and NP-complete.
- Cook-Levin Theorem, some reductions.
- Space complexity, Savitch's Theorem, PSPACE.
Quantified boolean formula satisfiability is PSPACE-complete. So is Generalized Geography.
- The space heirarchy and the time heirarchy theorems.
to the Theory of Computation(third edition) by Professor Michael Sipser. The latest errata can be found at
Homeworks (10 homeworks, each counts for three percent of the final score)
LATE-DUE HOMEWORK ARE NOT ACCEPTED.
In general you will be better off turning in what you have on time
rather than seeking extra time to complete your work. There will be no
make-up exams in general and exceptions will be rare and only for
students whose reasons are included in the University's policy on
"Excused Absences from Examinations".
- Homework 1 (30 points) Due date: 1/31/2017
Page 83-84: 1.4 (a, c, e, f, g); 1.5 (c-g); 1.6 (a-e).
- Homework 2 (30 points) Due date: 2/9/2017
Page 84-86: 1.7 (c-e); 1.13; 1.16; 1.17; 1.18.
- Homework 3 (30 points) Due date: 2/21/2017
Page 86-93: 1.21 (alternative methods are fine); 1.28; 1.42; 1.46 (a, c); 1.71.
Page 154-156: 2.4 (b,c,e); 2.9; 2.10.
- Homework 4 (30 points) Due date: 3/2/2017
Page 155-157: 2.6 (d); 2.12; 2.13; 2.14; 2.25; 2.30 (a,d); 2.31.
- Homework 5 (30 points) Due date: 3/9/2017
Page 187-189: 3.2 (b,d); 3.8 (b,c) (describe how the tape is changed and how the head moves);3.15 (b,d); 3.16 (c,d).
- Homework 6 (30 points) Due date: 3/30/2017
Page 211-212: 4.11; 4.13; 4.17; 4.21; 4.28.
- Homework 7 (30 points) Due date: 4/6/2017
Page 239-240: 5.9; 5.12; 5.13; 5.30 (b,c).(No use of Rice's Theorem in this homework, except 5.30).
- Homework 8 (30 points) Due date: 4/13/2017
Page 240-242: 5.21; 5.23; 5.24; 5.33; 5.35.
- Homework 9 (30 points) Due date: 4/20/2017
Page 322-324: 7.7; 7.10; 7.12; 7.13; 7.18; 7.20.
- Homework 10 (90 points) Due date: 5/13/2017
Page 324-326: 7.21; 7.22; 7.24; 7.26; 7.30; 7.35.
Page 357-358: 8.3; 8.4; 8.6; 8.8.
Exams (two midterms and one quiz, all in class time)
The final grade is based on the final score and curved for those whose final score is at least 30% of the full final score.
For the policies on ACADEMIC DISHONESTY and PROCEDURE FOR COMPLAINT,
see the Student Academic Handbook,
of the Colleage of Liberal Arts and Sciences.
The instructor of this course will follow the policies outlined at
for ACCOMMODATIONS FOR DISABILITIES, UNDERSTANDING SEXUAL HARASSMENT,
REACTING SAFELY TO SEVERE WEATHER.
You are expected to study all the material in each chapter covered
in the class even if that material is not explicitly discussed in
class or in the homework.
The lecture notes are a supplement to the course textbooks. They
are supposed to help you understand the textbook material better,
they are a replacement for neither the textbook nor the lecture
Please download/print the lecture notes on the day of the class
as it will be updated most likely on that day.
2 Regular Languages
part 2 PDF
3 Context-free Languages
4 Turing Machines
7 Time Complexity
8 NP Completeness
9 Space Complexity
10 Advanced Topics