Introduction to Undecidability
Alice Gao
Lecture 23 Based on work by J. Buss, L. Kari, A. Lubiw, B. Bonakdarpour, D. Maftuleac, C. Roberts, R. Trefmer, and P. Van Beek
CS 245 Logic and Computation Fall 2019 1 / 17
Introduction to Undecidability Alice Gao Lecture 23 Based on work - - PowerPoint PPT Presentation
Introduction to Undecidability Alice Gao Lecture 23 Based on work by J. Buss, L. Kari, A. Lubiw, B. Bonakdarpour, D. Maftuleac, C. Roberts, R. Trefmer, and P. Van Beek CS 245 Logic and Computation Fall 2019 1 / 17 Outline Introduction to
CS 245 Logic and Computation Fall 2019 1 / 17
CS 245 Logic and Computation Fall 2019 2 / 17
▶ Defjne decision problem. ▶ Defjne decidable problem. ▶ Defjne undecidable problem. ▶ Prove that a decision problem is decidable by giving an
▶ Describe the halting problem. ▶ Prove that the halting problem is undecidable.
CS 245 Logic and Computation Fall 2019 3 / 17
CS 245 Logic and Computation Fall 2019 4 / 17
▶ Racket, C, and C++ programs ▶ Turing machines ▶ High-level pseudo-code
CS 245 Logic and Computation Fall 2019 5 / 17
▶ Decidable ifg there exists an algorithm that solves the
▶ Undecidable ifg there does not exist an algorithm that solves
CS 245 Logic and Computation Fall 2019 6 / 17
CS 245 Logic and Computation Fall 2019 7 / 17
CS 245 Logic and Computation Fall 2019 8 / 17
CS 245 Logic and Computation Fall 2019 9 / 17
CS 245 Logic and Computation Fall 2019 10 / 17
CS 245 Logic and Computation Fall 2019 11 / 17
CS 245 Logic and Computation Fall 2019 12 / 17
▶ “Halts” means ”terminates” or ” does not get stuck.” ▶ One of the fjrst known undecidable problems
CS 245 Logic and Computation Fall 2019 13 / 17
CS 245 Logic and Computation Fall 2019 14 / 17
▶ Why can we feed a program as an input to itself?
▶ What does the negator do?
▶ Why do we need the photocopier?
CS 245 Logic and Computation Fall 2019 15 / 17
CS 245 Logic and Computation Fall 2019 16 / 17
▶ Defjne decision problem. ▶ Defjne decidable problem. ▶ Defjne undecidable problem. ▶ Prove that a decision problem is decidable by giving an
▶ Describe the halting problem. ▶ Prove that the halting problem is undecidable.
CS 245 Logic and Computation Fall 2019 17 / 17