Automata and Formal Languages (Final Review)

Slides:



Advertisements
Similar presentations
Recap CS605: The Mathematics and Theory of Computer Science.
Advertisements

The diagonalization method The halting problem is undecidable Decidability.
P and NP Sipser (pages ). CS 311 Fall Polynomial time P = ∪ k TIME(n k ) … P = ∪ k TIME(n k ) … TIME(n 3 ) TIME(n 2 ) TIME(n)
CS21 Decidability and Tractability
CS 302: Discrete Math II A Review. An alphabet Σ is a finite set (e.g., Σ = {0,1}) A string over Σ is a finite-length sequence of elements of Σ For x.
FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY Read sections 7.1 – 7.3 of the book for next time.
1 Other Models of Computation. 2 Models of computation: Turing Machines Recursive Functions Post Systems Rewriting Systems.
Foundations of (Theoretical) Computer Science Chapter 4 Lecture Notes (Section 4.1: Decidable Languages) David Martin With modifications.
CS 310 – Fall 2006 Pacific University CS310 P vs NP the steel cage death match Section 7.2 November 29, 2006.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
Final Exam Review Cummulative Chapters 0, 1, 2, 3, 4, 5 and 7.
חישוביות וסיבוכיות Computability and Complexity Lecture 7 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A AAAA.
Complexity theory and combinatorial optimization Class #2 – 17 th of March …. where we deal with decision problems, finite automata, Turing machines pink.
Midterm 2 review Jundong Liu School of EECS
Saeid Pashzadeh Jan 2009 Theory of Computation 1.
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 Review homework. Video. Variations. Definitions. Enumerators. Hilbert's Problem. Algorithms. Summary Homework: Give formal definition of.
CSCI 2670 Introduction to Theory of Computing October 13, 2005.
CS 154 Formal Languages and Computability May 12 Class Meeting Department of Computer Science San Jose State University Spring 2016 Instructor: Ron Mak.
Theory of Computational Complexity TA : Junichi Teruyama Iwama lab. D3
Theory of Computation. Introduction to The Course Lectures: Room ( Sun. & Tue.: 8 am – 9:30 am) Instructor: Dr. Ayman Srour (Ph.D. in Computer Science).
Review : Theory of Computation. Regular Language and Finite Automata Context-free Language and Pushdown Automata Turing Machine and Recursive Enumerable.
CSE 105 theory of computation
CSCI 2670 Introduction to Theory of Computing
CSE 105 theory of computation
CSCI 2670 Introduction to Theory of Computing
CS 461 – Dec. 2 Major results Automata: 3 models of computation
Review : Theory of Computation
Linear Bounded Automata LBAs
FORMAL LANGUAGES AND AUTOMATA THEORY
CSCI 2670 Introduction to Theory of Computing
CS21 Decidability and Tractability
CSCE 355 Foundations of Computation
Intro to Theory of Computation
CSE 105 theory of computation
BCS 2143 Theory of Computer Science
CSE 2001: Introduction to Theory of Computation Fall 2013
CSCI 2670 Introduction to Theory of Computing
FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY
Intro to Theory of Computation
Other Models of Computation
Summary.
CSE322 The Chomsky Hierarchy
Intro to Theory of Computation
RAJALAKSHMI ENGINEERING COLLEGE
Jaya Krishna, M.Tech, Assistant Professor
Intro to Theory of Computation
CSE 105 theory of computation
Context-Free Grammars
CSC 4170 Theory of Computation Decidable languages Section 4.1.
CS21 Decidability and Tractability
Decidable and undecidable languages
CS21 Decidability and Tractability
CS21 Decidability and Tractability
CS154, Lecture 13: P vs NP.
Decidability and Tractability
CSE 105 theory of computation
Chapter 1 Regular Language
Theory of Computability
CSE 105 theory of computation
CSE 105 theory of computation
Sub: Theoretical Foundations of Computer Sciences
Instructor: Aaron Roth
Theoretical Foundations of Computer Sciences
The Chomsky Hierarchy Costas Busch - LSU.
Intro to Theory of Computation
Intro to Theory of Computation
CSE 105 theory of computation
Presentation transcript:

Automata and Formal Languages (Final Review) Hongwei Xi University of Cincinnati 2 December 2018 Final Review

Regular Languages Deterministic Finite Automata D = (Q, S, d, q0, F) d: Q x S -> Q Nondeterministic Finite Automata N = (Q, S, D, q0, F) D: Q x S -> P(Q) Regular Expressions R = a | e | f | R1 o R2 | R1 u R2 | R* 2 December 2018 Final Review

Regular Languages Every NFA N can be converted to a DFA D, where L(N) = L(D) Every regular expression R corresponds to an NFA N, where L(R) = L(N) Every DFA D can be converted to a regular expression R, where L(D) = L(R) 2 December 2018 Final Review

Nonregular Languages Pumping Lemma: For any regular language L, there exists a number p (pumping length) such that for each s in L with length at least p, we have s=xyz, where xy^iz in L for i = 0,1,2,… |y| > 0 |xy| <= p 2 December 2018 Final Review

Context-free Languages Context-free grammars G = (V, S, R, S) Ambiguous CFGs Chomsky Normal Form Pushdown Automata L is a context-free language if and only if it is recognized by a PDA 2 December 2018 Final Review

Non-context-free Languages Pumping Lemma: For any CFL A, there exists a number p (pumping length) such that for each s in A, we have s = uvxyz, where uv^ixy^iz in L for i = 0,1,2,… |vy| > 0 |vxy| <= p 2 December 2018 Final Review

Computability Theory Turing machines: TM = (Q,S,G,d,q0,qaccept,qreject) d: Q x G -> Q x G x {L,R} Multitape Turing machines Nondeterministic Turing machines NTM = (Q,S,G,D,q0,qaccept,qreject) D: Q x G -> P (Q x G x {L,R}) 2 December 2018 Final Review

Computability Theory Enumerator Decider Church-Turing Thesis: Intuitive notion of algorithms = Turing machine algorithms 2 December 2018 Final Review

Decidability Decidable problems concerning regular languages: ADFA, EDFA, EQDFA, ALLDFA, INFINITEDFA, etc. Decidable problems concerning context-free languages: ACFG, ECFG, etc. 2 December 2018 Final Review

Undecidability Halting Problem: ATM = {<M, w> | M accepts w} Countability, Uncountablity Diagnalization The complement of ATM is not Turing-recognizable 2 December 2018 Final Review

More Undecidable Problems EQTM EQCFG ALLCFG (but ECFG is decidable!) Post correspondence problem 2 December 2018 Final Review

Time Complexity Big-O and Small-o notation Time(t(n)) = { L | L is a language decided by a O(t(n)) time Turing Machine } 2 December 2018 Final Review

Time Complexity Let t(n) be a function, where t(n) >= n for all natural numbers n. Then every t(n) time multitape TM has an equivalent O(t^2(n)) time single-tape TM Then every t(n) time Nondeterministic TM single-tape TM has an equivalent O(2^(t(n))) time single-tape TM 2 December 2018 Final Review

The Class P P = the union of time(n^k) for all natural numbers k Examples in P PATH RELPRIME Every context-free language is in P Dynamic programming 2 December 2018 Final Review

The Class NP NP stands for nondeterministic polynomial time Verifier Every language in NP has a polynomial time verifier Every language in NP is decided by a polynomial time nondeterministic TM 2 December 2018 Final Review

The Class NP Examples in NP HAMPATH CLIQUE SUBSET-SUM 2 December 2018 Final Review

P vs. NP One of the greatest questions in theoretical computer science: P = NP? In general, people believe P is a proper subclass of NP In general, it is difficult to find a lower time bound for a given problem 2 December 2018 Final Review

NP-completeness Polynomial time reducibility: A <=P B B is NP-complete if B is in NP A <=P B for all A in NP Cook-Levin Theorem: SAT is NP-complete 2 December 2018 Final Review

More NP-Complete Problems 3SAT HAMPATH CLIQUE SUBSET-SUM 2 December 2018 Final Review

Final Exam Date: December 5, 2000 Place: 501 Swift Hall Time: 1:30 – 3:30 PM Choose 10 out of 15 problems 2 December 2018 Final Review