Midterm 2 review Jundong Liu School of EECS

Slides:



Advertisements
Similar presentations
CS 461 – Nov. 9 Chomsky hierarchy of language classes –Review –Let’s find a language outside the TM world! –Hints: languages and TM are countable, but.
Advertisements

The Halting Problem Sipser 4.2 (pages ). CS 311 Mount Holyoke College 2 Taking stock All languages Turing-recognizable Turing-decidable Context-free.
The Halting Problem Sipser 4.2 (pages ).
Courtesy Costas Busch - RPI1 A Universal Turing Machine.
1 Linear Bounded Automata LBAs. 2 Linear Bounded Automata are like Turing Machines with a restriction: The working space of the tape is the space of the.
Decidability. Why study un-solvability? When a problem is algorithmically unsolvable, we realize that the problem must be simplified or altered before.
Decidable and undecidable problems deciding regular languages and CFL’s Undecidable problems.
Lecture 5 Turing Machines
Fall 2004COMP 3351 A Universal Turing Machine. Fall 2004COMP 3352 Turing Machines are “hardwired” they execute only one program A limitation of Turing.
January 28, 2015CS21 Lecture 101 CS21 Decidability and Tractability Lecture 10 January 28, 2015.
1 Lecture 6 Topics –Proof of the existence of unsolvable problems Problems/languages not in REC Proof Technique –There are more problems/languages than.
Final Exam Review Cummulative Chapters 0, 1, 2, 3, 4, 5 and 7.
Remaining Topics Decidability Concept 4.1 The Halting Problem 4.2
The Halting Problem – Undecidable Languages Lecture 31 Section 4.2 Wed, Oct 31, 2007.
A Universal Turing Machine
1 Linear Bounded Automata LBAs. 2 Linear Bounded Automata (LBAs) are the same as Turing Machines with one difference: The input string tape space is the.
CS 208: Computing Theory Assoc. Prof. Dr. Brahim Hnich Faculty of Computer Sciences Izmir University of Economics.
1 Turing’s Thesis. 2 Turing’s thesis: Any computation carried out by mechanical means can be performed by a Turing Machine (1930)
1Computer Sciences Department. Book: INTRODUCTION TO THE THEORY OF COMPUTATION, SECOND EDITION, by: MICHAEL SIPSER Reference 3Computer Sciences Department.
D E C I D A B I L I T Y 1. 2 Objectives To investigate the power of algorithms to solve problems. To explore the limits of algorithmic solvability. To.
Computability Universal Turing Machine. Countability. Halting Problem. Homework: Show that the integers have the same cardinality (size) as the natural.
CS 461 – Nov. 7 Decidability concepts –Countable = can number the elements  –Uncountable = numbering scheme impossible  –A TM undecidable –Language classes.
CSCI 2670 Introduction to Theory of Computing October 13, 2005.
Donghyun (David) Kim Department of Mathematics and Computer Science North Carolina Central University 1 Chapter 4 Decidability Some slides are in courtesy.
CS 154 Formal Languages and Computability May 12 Class Meeting Department of Computer Science San Jose State University Spring 2016 Instructor: Ron Mak.
The Church-Turing Thesis
1 A Universal Turing Machine. 2 Turing Machines are “hardwired” they execute only one program A limitation of Turing Machines: Real Computers are re-programmable.
CSCI 2670 Introduction to Theory of Computing
A Universal Turing Machine
CS 461 – Nov. 2 Sets Prepare for ATM finite vs. infinite Infinite sets
CSE 105 theory of computation
This statement is false.
CSCI 2670 Introduction to Theory of Computing
CSCI 2670 Introduction to Theory of Computing
Intro to Theory of Computation
Pumping Lemma Revisited
CSE 105 theory of computation
BCS 2143 Theory of Computer Science
CS154, Lecture 7: Turing Machines.
CSE 105 theory of computation
CSE 2001: Introduction to Theory of Computation Fall 2013
Reducibility The Chinese University of Hong Kong Fall 2010
CSCI 2670 Introduction to Theory of Computing
Intro to Theory of Computation
Intro to Theory of Computation
Jaya Krishna, M.Tech, Assistant Professor
Automata and Formal Languages (Final Review)
CSE 105 theory of computation
Decidable Languages Costas Busch - LSU.
CSC 4170 Theory of Computation Decidable languages Section 4.1.
Decidable and undecidable languages
CSCI 2670 Introduction to Theory of Computing
CS21 Decidability and Tractability
CS21 Decidability and Tractability
CSCI 2670 Introduction to Theory of Computing
Decidability and Tractability
CSCI 2670 Introduction to Theory of Computing
CS21 Decidability and Tractability
CSE 105 theory of computation
CSE 105 theory of computation
Theory of Computability
CSCI 2670 Introduction to Theory of Computing
Instructor: Aaron Roth
CSE 105 theory of computation
Intro to Theory of Computation
Intro to Theory of Computation
Intro to Theory of Computation
CSE 105 theory of computation
CSE 105 theory of computation
Presentation transcript:

Midterm 2 review Jundong Liu School of EECS

True of false: The pumping lemma for CFLs can be used to prove that a language is Context-free. Define the language EQUAL3 over {a, b, c} to be the language with an equal number of a’s, b’s and c’s. Can the string be used in a pumping lemma proof? Can the string be used for EQUAL3? Pumping Lemma for CFLs

Pump lemma for CFLs You can’t control The Pumping length p You can control The selection of s S should be a string | S |>= p, for example, Then S can be Next step: based on analysis to derive contradiction

Closure Properties of CFLs, How to prove them?

Turing Machines

Turing Machine: Formal definition

Turing Machines: Concepts, definitions transitions of a TM accepting, rejecting states A language of a TM = set of strings it accepts Turing recognizable language = language of certain TM decidable language

Skills Understand the difference between a decidable and a recognizable language Given a configuration and the transition table, what will be the next configuration? How would one design TM that decides {02^n}, {w#w}, {a^n b^n c^n}?

Turing Machines Variants Stay put Turing Machine Multi-tape Turing Machine Doubly infinite Turing Machine Enumerator Nondeterministic Turing Machine The notion of simulation

Church-Turing Thesis

Algorithm in real world = Turing Machine algorithm 3 levels of descriptions

The languages A-DFA, A-NFA, A-REX, A-CFG are decidable. The languages E-DFA, E-NFA, E-REX, E-CFG are decidable. The languages EQ-DFA, EQ-NFA, EQ-REX are decidable. The symmetric difference of S1 and S2. The languages EQ-CFG, A-TM, E-TM, EQ-TM are not decidable. (Un)solvable problems in the real world  (un)decidable languages under Turing Machine framework

How to? Prove that the languages A-DFA, A-NFA, A- REX, A-CFG are decidable. Prove that the languages E-DFA, E-NFA, E- REX, E-CFG are decidable. Prove that the languages EQ-DFA, EQ-NFA, EQ-REX are decidable.

Understand … The diagonalization technique Why E (the set of even numbers), Z (set of integer numbers) are countable. Why R (the set of real numbers) is uncountable. Why there are more languages than Turing machines.