COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.

Slides:



Advertisements
Similar presentations
CPSC Compiler Tutorial 4 Midterm Review. Deterministic Finite Automata (DFA) Q: finite set of states Σ: finite set of “letters” (input alphabet)
Advertisements

COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
C O N T E X T - F R E E LANGUAGES ( use a grammar to describe a language) 1.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
Pushdown Automata Part II: PDAs and CFG Chapter 12.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
1 Introduction to Computability Theory Lecture12: Decidable Languages Prof. Amos Israeli.
CFG => PDA Sipser 2 (pages ).
1 Introduction to Computability Theory Lecture5: Context Free Languages Prof. Amos Israeli.
CFG => PDA Sipser 2 (pages ). CS 311 Fall Formally… A pushdown automaton is a sextuple M = (Q, Σ, Γ, δ, q 0, F), where – Q is a finite set.
Applied Computer Science II Chapter 2 : Context-free languages Prof. Dr. Luc De Raedt Institut für Informatik Albert-Ludwigs Universität Freiburg Germany.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
CS Master – Introduction to the Theory of Computation Jan Maluszynski - HT Lecture 4 Context-free grammars Jan Maluszynski, IDA, 2007
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
1 Context-Free Languages. 2 Regular Languages 3 Context-Free Languages.
1 Pushdown Automata PDAs. 2 Pushdown Automaton -- PDA Input String Stack States.
1 Context-Free Languages. 2 Regular Languages 3 Context-Free Languages.
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.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 7 Mälardalen University 2010.
CSC312 Automata Theory Lecture # 1 Introduction.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
CSCI 2670 Introduction to Theory of Computing September 15, 2005.
1 Context-Free Languages. 2 Regular Languages 3 Context-Free Languages.
Lecture # 9 Chap 4: Ambiguous Grammar. 2 Chomsky Hierarchy: Language Classification A grammar G is said to be – Regular if it is right linear where each.
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.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
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.
1Computer Sciences Department. Book: INTRODUCTION TO THE THEORY OF COMPUTATION, SECOND EDITION, by: MICHAEL SIPSER Reference 3Computer Sciences Department.
Grammars CS 130: Theory of Computation HMU textbook, Chap 5.
Lecture 1 Overview Topics 1. Proof techniques: induction, contradiction Proof techniques June 1, 2015 CSCE 355 Foundations of Computation.
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.
CS130: Theory of Computation An introductory course on the theory of automata and formal languages: models of machines, languages and grammars, relationship.
Chapter 5 Context-Free Languages Regular language are effective in describing certain simple patterns. But it is not enough to describe programming languages.
CSCI 2670 Introduction to Theory of Computing October 13, 2005.
Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1 Chapter 2 Context-Free Languages Some slides are in courtesy.
Transparency No. 1 Formal Language and Automata Theory Homework 5.
Theory of Languages and Automata By: Mojtaba Khezrian.
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).
Changes to JFLAP to Increase Its Use in Courses Susan H. Rodger Duke University ITiCSE 2011 Darmstadt, Germany June 29, 2011 NSF Grants.
Review : Theory of Computation. Regular Language and Finite Automata Context-free Language and Pushdown Automata Turing Machine and Recursive Enumerable.
CSCE 355 Foundations of Computation
Why Study Automata Theory and Formal Languages?
Context-Free Grammars: an overview
Review : Theory of Computation
CSCE 355 Foundations of Computation
CSE 105 theory of computation
CSCE 355 Foundations of Computation
An Interactive Approach to Formal Languages and Automata with JFLAP
CHAPTER 2 Context-Free Languages
Context-Free Languages
Department of Computer Science & Engineering
Chapter 2 Context-Free Language - 01
CSE 105 theory of computation
Sub: Theoretical Foundations of Computer Sciences
CSE 105 theory of computation
Presentation transcript:

COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University pursuant to Part VB of the Copyright Act 1968 (the Act). The material in this communication may be subject to copyright under the Act. Any further reproduction or communication of this material by you may be the subject of copyright protection under the Act. Do not remove this notice.

Revision CSE2303 Formal Methods I Lecture 24

Overview What you DON’T need to know for the exam. What you DO need to know for the exam. Exam Technique.

What you DON’T need to know C flex/lex bison/yacc sicstus/prolog How to build a UTM. How to convert WFF into clauses.

Exam Questions Will be like the tutorial sheet questions. You need to be able to do ALL the questions on ALL the tutorial sheets. Solutions to these questions are available on the web via:

What you need to know

Regular Languages Regular Expressions –How to define a language using a regular expression. –Determine whether a string can be defined by a regular expression. –Properties of Regular Languages, e.g. the complement of a regular language is a regular language. Finite Automata –Know how they work. –Construct a finite automata which accepts a language. –How to construct a finite automata for the complement of a language.

Regular Language (cont.) Nondeterministic Finite Automata –Know how they work. –Construct NFA-  which accepts a language defined by a regular expression. –Convert a NFA-  into a finite automata. Generalised Transition Graph –Know how they work. –Convert into a regular expression. Moore & Mealy machines –Know how they work. –Find equations for a sequential circuit corresponding to a Mealy machine. Pumping Lemma –What is an application of the Pumping Lemma

Problem Construct a finite automata which accepts the languages defined by the regular expression (a + b)(aa + ab)*

Context-free Languages Context Free Grammar –How to show a CFG is ambiguous. –Find a parse tree for a word generated by a CFG. –Find rightmost and leftmost derivations of a word generated by a CFG. –Know examples of CFLs. –How to write a regular grammar for a regular language. Pushdown Automata –How to trace the execution of a word through a PDA. Pumping Lemma –What is an application of the Pumping Lemma.

Problem Construct a regular grammar which accepts the languages defined by the regular expression (a + b)(aa + ab)*

Problem For the following CFG S  E E  T + E | T - E | T T  F*T | F/T | F F  integer | (E) find the parse tree for the expression 2-3*4/7

Recursive-Enumerable Turing Machines –Build a Turing Machine which accepts a language. Recursive-Enumerable & Recursive –Definition and Examples. Computable Functions –Definition and examples. –Build a Turing machine which computes a function.

Problem Build a Turing Machine that accepts the language {a n b 2n }.

Logic Propositional Logic –Express arguments in propositional logic. –Determine whether an argument is valid. –Find CNF and clausal form of formulae. –Be able to do resolution. Predicate Logic –Express statements in predicate logic. –Be able to do resolution.

Problem For the following formula ((p  q)  (q  p))  r Find the CNF.

Problem Convert the following statements into first order logic, using the constants mary and peter, the function rightFoot, and the predicate kicked. 1. The Peter’s right foot kicked Mary’s right foot. 2. No one kicked Peter.

Problem Using resolution show that the following set of clauses are unsatisfiable. Clearly indicate at each step which clauses you are resolving and what unifications you are making. {{p(X)}, {q(Y, a), ¬p(a)}, {¬q(a,a)}}

Exam Technique DON’T PANIC Use the reading time. Look for the easy marks, and do those questions first. Don’t spend too much time on any question.