Review for final 12-17-14 1-3pm. 2 Review for Midterm 10-9-14 Induction – On integer: HW1, Ex 2.2.9b p54 – On length of string: Ex 2.2.2 p53, HW2, HW3.

Slides:



Advertisements
Similar presentations
CSC 361NFA vs. DFA1. CSC 361NFA vs. DFA2 NFAs vs. DFAs NFAs can be constructed from DFAs using transitions: Called NFA- Suppose M 1 accepts L 1, M 2 accepts.
Advertisements

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 Lecture5: Context Free Languages Prof. Amos Israeli.
Applied Computer Science II Chapter 2 : Context-free languages Prof. Dr. Luc De Raedt Institut für Informatik Albert-Ludwigs Universität Freiburg Germany.
Homework #5 Solutions 1. True or False a) Regular Languages are always Context-Free Languages True False b) Context Free Languages are always Regular.
1 CSC 3130: Automata theory and formal languages Tutorial 4 KN Hung Office: SHB 1026 Department of Computer Science & Engineering.
CS Master – Introduction to the Theory of Computation Jan Maluszynski - HT Lecture 4 Context-free grammars Jan Maluszynski, IDA, 2007
Homework #2 Solutions.
CS 310 – Fall 2006 Pacific University CS310 Decidability Section 4.1/4.2 November 10, 2006.
1 Single Final State for NFAs and DFAs. 2 Observation Any Finite Automaton (NFA or DFA) can be converted to an equivalent NFA with a single final state.
Courtesy Costas Busch - RPI1 Non-regular languages.
1 CSCI 3130: Formal Languages and Automata Theory Tutorial 4 Hung Chun Ho Office: SHB 1026 Department of Computer Science & Engineering.
1 Context-Free Languages. 2 Regular Languages 3 Context-Free Languages.
Definitions Equivalence to Finite Automata
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
1 Applications of Regular Closure. 2 The intersection of a context-free language and a regular language is a context-free language context free regular.
1 The Pumping Lemma for Context-Free Languages. 2 Take an infinite context-free language Example: Generates an infinite number of different strings.
FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY
1 Context-Free Languages. 2 Regular Languages 3 Context-Free Languages.
Nathan Brunelle Department of Computer Science University of Virginia Theory of Computation CS3102 – Spring 2014 A tale.
Final Exam Review Cummulative Chapters 0, 1, 2, 3, 4, 5 and 7.
INHERENT LIMITATIONS OF COMPUTER PROGAMS CSci 4011.
Cs3102: Theory of Computation Class 10: DFAs in Practice Spring 2010 University of Virginia David Evans.
INHERENT LIMITATIONS OF COMPUTER PROGRAMS CSci 4011.
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 7 Mälardalen University 2010.
The Golden Chain εNFA  NFA  DFA  REGEX. Regular Expressions.
1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 5 School of Innovation, Design and Engineering Mälardalen University 2012.
CSCI 2670 Introduction to Theory of Computing September 21, 2004.
CSCI 2670 Introduction to Theory of Computing September 15, 2005.
Context-free Languages
1 Context-Free Languages. 2 Regular Languages 3 Context-Free Languages.
 Regular Grammar and Regular Language [Def 3.1] Regular Grammar(use to in lexical analysis) Type 3 grammar(regular grammar, RG) Type 3 grammar(regular.
Lesson No.6 Naveen Z Quazilbash. Overview Attendance and lesson plan sharing Assignments Quiz (10 mins.). Some basic ideas about this course Regular Expressions.
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 11 Midterm Exam 2 -Context-Free Languages Mälardalen University 2005.
Saeid Pashzadeh Jan 2009 Theory of Computation 1.
Pushdown Automata Chapters Generators vs. Recognizers For Regular Languages: –regular expressions are generators –FAs are recognizers For Context-free.
Cs3102: Theory of Computation Class 8: Non-Context-Free Languages Spring 2010 University of Virginia David Evans.
1 A well-parenthesized string is a string with the same number of (‘s as )’s which has the property that every prefix of the string has at least as many.
Pumping Lemma for CFLs. Theorem 7.17: Let G be a CFG in CNF and w a string in L(G). Suppose we have a parse tree for w. If the length of the longest path.
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 9 Mälardalen University 2006.
Homework 4 due 11/25.
C SC 473 Automata, Grammars & Languages Automata, Grammars and Languages Discourse 04 Context-Free Grammars and Pushdown Automata.
CFL Big Picture. Context Free Languages Conclusion We have studied the class of context free languages (CFL) We saw two different ways to express a CFL.
1 Chapter Constructing Efficient Finite Automata.
Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1 Chapter 2 Context-Free Languages Some slides are in courtesy.
1 A well-parenthesized string is a string with the same number of (‘s as )’s which has the property that every prefix of the string has at least as many.
1 Section 11.3 Constructing Efficient Finite Automata First we’ll see how to transform an NFA into a DFA. Then we’ll see how to transform a DFA into a.
Mid-Terms Exam Scope and Introduction. Format Grades: 100 points -> 20% in the final grade Multiple Choice Questions –8 questions, 7 points each Short.
CSCI 2670 Introduction to Theory of Computing September 16, 2004.
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).
General Discussion of “Properties” The Pumping Lemma Membership, Emptiness, Etc.
Changes to JFLAP to Increase Its Use in Courses Susan H. Rodger Duke University ITiCSE 2011 Darmstadt, Germany June 29, 2011 NSF Grants.
Closed book, closed notes
Formal Language & Automata Theory
Properties of Context-Free Languages
50/50 rule You need to get 50% from tests, AND
CSCE 355 Foundations of Computation
7. Properties of Context-Free Languages
CSE 105 theory of computation
An Interactive Approach to Formal Languages and Automata with JFLAP
4. Properties of Regular Languages
Regular Expressions.
Department of Computer Science & Engineering
Chapter 1 Regular Language - 02
Midterm #2 — Review problems
Chapter 2 Context-Free Language - 01
Principles of Computing – UFCFA3-30-1
Sub: Theoretical Foundations of Computer Sciences
Review for the Midterm. Overview (Chapter 1):
CFL Big Picture.
Presentation transcript:

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 Covered on midterm (2.2.9a) but could be on final Testing string acceptance – DFA: FA2 #23 – NFA: FA3 #9 covered on midterm –  -NFA: FA3 #42

3 More Review for Midterm Equivalence – NFA to DFA Full SC: FA3 #16-18 Lazy SC: FA3 #19-21 covered on midterm –  -NFA to NFA: FA3 #46 covered on midterm –  -NFA to DFA: FA3 # 49-53

4 Review for final Testing algebraic laws for RE – p , p122 Find the RE for a given type of strings – Ex and p 91 Describe the strings generate by a given RE – Ed p92

5 DFA to RE – K-paths: Ex p107 (HW6) – Elimination of states: Example 3.6 text p101 RE to  -NFA: – Ex p108 (HW6) – Quiz 5 problem 1 More Review for final

6 Decision properties of regular languages – Regular languages 1: slides 5-32 – Text pp – Construction of minimum-state DFA HW8, ex p165 Closure properties of regular languages Quiz 7 – Homomorphism and Inverse homomorphism: HW9 – Construction of product DFAs: RL2 slides 5-6 – Construction of inverse homomorphism DFA Regular languages 2: slide 21 More Review for final

7 Pumping Lemma (RL1 #12) – Quiz #6 question 1 – Test if L is regular: HW7, p132 Context-free grammars 1&2: – Design a CFG Ex p181 – LM/RM derivations, Parse Trees: HW10, Ex p182, quiz 8 – Ambiguous CFG: HW10, quiz 8 – LL1 CFG: quiz 8

8 More Review for final Context free grammars 3 – Clean up and CNF HW11 and quiz 10 Pushdown automata 1 – Ex p233 – Ex p241 – HW12, Ex p242 Pushdown automata 2 – Ex p251