









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An introduction and course overview of CS 172: Computability and Complexity. The course is taught by Sanjit A. Seshia, an Assistant Professor at EECS, UC Berkeley. a problem to solve, course logistics, motivation for the course, and grading policies. The course is about models of computation and the limits of computation. a brief introduction to proof and finite automata. The document could be useful as study notes with a rate of 7 out of 10.
Typology: Study notes
1 / 17
This page cannot be seen from the preview
Don't miss anything!










CS 172: Computability and Complexity
Acknowledgments: L.von Ahn, L. Blum, M. Blum, R. Jhala
S. A. Seshia 2
Suppose A ⊆⊆⊆⊆ {1, 2, …, 2n}
TRUE or FALSE: There are always two numbers in A such that one divides the other
with |A| = n+
(work out the answer with proof)
S. A. Seshia 3
S. A. Seshia 4
B.Tech., Computer Sc. & Engg., IIT Bombay
M.S. & Ph.D., Computer Science, Carnegie Mellon University, Pittsburgh
Assistant Professor, EECS, UC Berkeley Office: 566 Cory
S. A. Seshia 7
S. A. Seshia 8
S. A. Seshia 9
S. A. Seshia 10
S. A. Seshia 13
Analyzing a model helps us build reliable bridges, in a cost-effective & timely way
Why not do the same for computers?
S. A. Seshia 14
S. A. Seshia 15
Programs and Pushdown Automata
S. A. Seshia 16
Analyzing correctness of computers is hard!
Limits of computation
S. A. Seshia 19
S. A. Seshia 20
Suppose A ⊆⊆⊆⊆ {1, 2, …, 2n}
TRUE or FALSE: There are always two numbers in A such that one divides the other
with |A| = n+
S. A. Seshia 21
S. A. Seshia 22
Suppose A (^) ⊆⊆⊆⊆ {1, 2, …, 2n}
Write every number in A as a = 2km, where m is an odd number between 1 and 2n-
How many odd numbers in {1, …, 2n-1}? (^) n
Since |A| = n+1, there must be two numbers in A with the same odd part (pigeonhole)
with |A| = n+
Say a 1 and a 2 have the same odd part m. Then a 1 = 2im and a 2 = 2jm, so one must divide the other
S. A. Seshia 25
S. A. Seshia 26
S. A. Seshia 27
S. A. Seshia 28
The machine accepts a string if the process ends in a double circle
S. A. Seshia 31
q 3
q 0
q 1
q 2
M = (Q, Σ , δδδδ , q 0 , F) What are
**1. Q
S. A. Seshia 32
S. A. Seshia 33