CSCE 355 Foundations of Computation

Slides:



Advertisements
Similar presentations
Grammar types There are 4 types of grammars according to the types of rules: – General grammars – Context Sensitive grammars – Context Free grammars –
Advertisements

Formal Languages: main findings so far A problem can be formalised as a formal language A formal language can be defined in various ways, e.g.: the language.
Lecture 8 From NFA to Regular Language. Induction on k= # of states other than initial and final states K=0 a a* b a c d c*a(d+bc*a)*
1 Introduction to Computability Theory Lecture14: Recap Prof. Amos Israeli.
CSCI 2670 Introduction to Theory of Computing October 19, 2005.
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.
1 Lecture 21 Regular languages review –Several ways to define regular languages –Two main types of proofs/algorithms Relative power of two computational.
Decidability. Why study un-solvability? When a problem is algorithmically unsolvable, we realize that the problem must be simplified or altered before.
Foundations of (Theoretical) Computer Science Chapter 4 Lecture Notes (Section 4.1: Decidable Languages) David Martin With modifications.
CS5371 Theory of Computation Lecture 6: Automata Theory IV (Regular Expression = NFA = DFA)
CS21 Decidability and Tractability
Fall 2003Costas Busch - RPI1 Turing Machines (TMs) Linear Bounded Automata (LBAs)
Final Exam Review Cummulative Chapters 0, 1, 2, 3, 4, 5 and 7.
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.
Review for final pm. 2 Review for Midterm Induction – On integer: HW1, Ex 2.2.9b p54 – On length of string: Ex p53, HW2, HW3.
Lecture 1 Overview Topics 1. Proof techniques: induction, contradiction Proof techniques June 1, 2015 CSCE 355 Foundations of Computation.
Grammars A grammar is a 4-tuple G = (V, T, P, S) where 1)V is a set of nonterminal symbols (also called variables or syntactic categories) 2)T is a finite.
Theory of Computing CSCI 356/541 Lab Session. Outline Lab 1: Finite Automata  Construct and Run Construct and Run  Manipulating Transitions Manipulating.
CS130: Theory of Computation An introductory course on the theory of automata and formal languages: models of machines, languages and grammars, relationship.
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.
Lecture 16b Turing Machines Topics: Closure Properties of Context Free Languages Cocke-Younger-Kasimi Parsing Algorithm June 23, 2015 CSCE 355 Foundations.
Lecture 10 Closure Properties of Regular Languages Topics: Extended RegExpr Thompson Construction Test 1 Post Mortem October 1, 2008 CSCE 355 Foundations.
Mid-Terms Exam Scope and Introduction. Format Grades: 100 points -> 20% in the final grade Multiple Choice Questions –8 questions, 7 points each Short.
Theory of Languages and Automata By: Mojtaba Khezrian.
 2005 SDU Lecture11 Decidability.  2005 SDU 2 Topics Discuss the power of algorithms to solve problems. Demonstrate that some problems can be solved.
CSCI 3130: Formal languages and automata theory Andrej Bogdanov The Chinese University of Hong Kong Decidable.
Page 1. 1)Let B n = { a k | where k is a multiple of n}. I.e. B 1 = { a k | where k is a multiple of 1} = { a k | k Є {0,1,2,3,…}} = {‘’, a, aa, aaa, aaaa,
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).
Topic 3: Automata Theory 1. OutlineOutline Finite state machine, Regular expressions, DFA, NDFA, and their equivalence, Grammars and Chomsky hierarchy.
Review : Theory of Computation. Regular Language and Finite Automata Context-free Language and Pushdown Automata Turing Machine and Recursive Enumerable.
Theory of Languages and Automata By: Mojtaba Khezrian.
Language Recognition MSU CSE 260.
CSCI 2670 Introduction to Theory of Computing
CSCE 355 Foundations of Computation
Why Study Automata Theory and Formal Languages?
Why Study Automata? What the Course is About Administrivia
Introduction to the Theory of Computation
50/50 rule You need to get 50% from tests, AND
CSE 105 theory of computation
CSCI 2670 Introduction to Theory of Computing
Review : Theory of Computation
Linear Bounded Automata LBAs
FORMAL LANGUAGES AND AUTOMATA THEORY
Lecture 22 Pumping Lemma for Context Free Languages
CSCI 2670 Introduction to Theory of Computing
CSCE 355 Foundations of Computation
FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY
Course 2 Introduction to Formal Languages and Automata Theory (part 2)
CSE322 Chomsky classification
Cpt S 317: Spring 2009 Reading: Chapters 1-9
Summary.
Jaya Krishna, M.Tech, Assistant Professor
An Interactive Approach to Formal Languages and Automata with JFLAP
CS 154, Lecture 3: DFANFA, Regular Expressions.
4. Properties of Regular Languages
Automata and Formal Languages (Final Review)
CHAPTER 2 Context-Free Languages
Animated Conversion of Regular Expressions to C Code
CSCI 2670 Introduction to Theory of Computing
Decidable and undecidable languages
Department of Computer Science & Engineering
CS21 Decidability and Tractability
Decidability and Tractability
Chapter 1 Regular Language
CSE 105 theory of computation
Automata, Grammars and Languages
Sub: Theoretical Foundations of Computer Sciences
Theoretical Foundations of Computer Sciences
Presentation transcript:

CSCE 355 Foundations of Computation Exam Review Topics: Mathematical preliminaries Finite Automata Context free languages Pushdown Automata Turing Machines Undecidability December 10, 2008

Relations: properties and examples Proof Techniques: Induction, mutual induction, contradiction. From English description to DFA or NFA. For DFA, NFA, ε NFA give L(M) ε NFA DFA using subset construction Given language L find a regular expression r such that L(r) = L Given regular expression r find L(r) Regular Expressions to ε NFA Minimization of DFA Non-regular languages: Distinguished Prefixes, Pumping Lemma

Context Free Grammars Given language L find pushdown automata with L(P)=L, or N(P)=L. Show language is not context free, using pumping lemma for CFLs. Flex/YACC Design TM to recognize a language L. Convert a CFG to Chomsky-normal form. What does it mean for a language to be: regular, context-free, context sensitive, recursively enumerable, recursive Give example languages of each set of languages in the hierarchy that is not in the next set, except for context sensitive. Design Turing machine to compute f(x) = 2x

Relations: properties and examples R1 = {(a,a), (a,b), (a,c), (a,d)} Reflexive closure? Transitive closure? Reflexive-transitive closure, R1*

x

Proof Techniques: Induction, mutual induction, contradiction.

From English description to DFA or NFA

For DFA, NFA, ε NFA give L(M)

ε NFA DFA using subset construction

Given language L find a regular expression

Given regular expression r find L(r)

Regular Expressions to ε NFA (Thompson)

Minimization of DFA

Non-regular languages: Distinguished Prefixes Pumping Lemma

Context Free Grammars

Given language L find pushdown automata with L(P)=L, or N(P)=L

Show language is not context free, using pumping lemma for CFLs.

Flex/YACC/Ruby

Design TM to recognize a language L.

Convert a CFG to Chomsky-normal form.

What does it mean for a language to be: regular, context-free, context sensitive, recursively enumerable, recursive

Give example languages Chomsky Hierarchy

Design Turing machine to compute Algorithm for computing function f(x,y) = x – y (max {0, x-y}) f(x,y) = x + y f(x) = 2x

Recursive vs R.E.

Halting Problem