Decidable Problems of Regular Languages

Slides:



Advertisements
Similar presentations
PDAs Accept Context-Free Languages
Advertisements

Fall 2004COMP 3351 Simplifications of Context-Free Grammars.
Prof. Busch - LSU1 Properties of Context-Free languages.
Courtesy Costas Busch - RPI1 Positive Properties of Context-Free languages.
1 Positive Properties of Context-Free languages. 2 Context-free languages are closed under: Union is context free is context-free.
Fall 2003Costas Busch - RPI1 Decidability. Fall 2003Costas Busch - RPI2 Recall: A language is decidable (recursive), if there is a Turing machine (decider)
1 More Properties of Regular Languages. 2 We have proven Regular languages are closed under: Union Concatenation Star operation Reverse.
1 Regular Expressions. 2 Regular expressions describe regular languages Example: describes the language.
Fall 2006Costas Busch - RPI1 Deterministic Finite Automata And Regular Languages.
Costas Busch - RPI1 Standard Representations of Regular Languages Regular Languages DFAs NFAs Regular Expressions Regular Grammars.
Costas Buch - RPI1 Simplifications of Context-Free Grammars.
Costas Busch - RPI1 Positive Properties of Context-Free languages.
Fall 2003Costas Busch - RPI1 Decidable Problems of Regular Languages.
Costas Busch - RPI1 Context-Free Languages. Costas Busch - RPI2 Regular Languages.
Costas Busch - RPI1 Standard Representations of Regular Languages Regular Languages DFAs NFAs Regular Expressions Regular Grammars.
Fall 2004COMP 3351 Standard Representations of Regular Languages Regular Languages DFAs NFAs Regular Expressions Regular Grammars.
Fall 2004COMP 3351 Time Complexity We use a multitape Turing machine We count the number of steps until a string is accepted We use the O(k) notation.
Finite Automata Costas Busch - RPI.
Fall 2006Costas Busch - RPI1 Undecidable Problems (unsolvable problems)
Prof. Busch - LSU1 Undecidable Problems (unsolvable problems)
Prof. Busch - RPI1 Decidable Problems of Regular Languages.
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.
Fall 2006Costas Busch - RPI1 Deterministic Finite Automaton (DFA) Input Tape “Accept” or “Reject” String Finite Automaton Output.
Decidable Questions About Regular languages 1)Membership problem: “Given a specification of known type and a string w, is w in the language specified?”
Regular Expressions Costas Busch - LSU.
Costas Busch - LSU1 Properties of Context-Free languages.
Costas Busch - LSU1 Time Complexity. Costas Busch - LSU2 Consider a deterministic Turing Machine which decides a language.
1 Time Complexity We use a multitape Turing machine We count the number of steps until a string is accepted We use the O(k) notation.
Costas Busch - LSU1 Parsing. Costas Busch - LSU2 Compiler Program File v = 5; if (v>5) x = 12 + v; while (x !=3) { x = x - 3; v = 10; } Add v,v,5.
Grammar Set of variables Set of terminal symbols Start variable Set of Production rules.
Costas Busch - LSU1 Linear Grammars Grammars with at most one variable at the right side of a production Examples:
Algorithms and Decision Procedures for Regular Languages Chapter 9.
Mid-Terms Exam Scope and Introduction. Format Grades: 100 points -> 20% in the final grade Multiple Choice Questions –8 questions, 7 points each Short.
Prof. Busch - LSU1 Time Complexity. Prof. Busch - LSU2 Consider a deterministic Turing Machine which decides a language.
Costas Busch - RPI1 Decidability. Costas Busch - RPI2 Consider problems with answer YES or NO Examples: Does Machine have three states ? Is string a binary.
Decidability.
Costas Busch - LSU1 Deterministic Finite Automata And Regular Languages.
Formal Language & Automata Theory
Non-regular languages
Standard Representations of Regular Languages
PDAs Accept Context-Free Languages
Time Complexity Costas Busch - LSU.
Undecidable Problems Costas Busch - LSU.
Reductions Costas Busch - LSU.
NPDAs Accept Context-Free Languages
Simplifications of Context-Free Grammars
Simplifications of Context-Free Grammars
PDAs Accept Context-Free Languages
Busch Complexity Lectures: Undecidable Problems (unsolvable problems)
Undecidable Problems (unsolvable problems)
Regular Expressions Prof. Busch - LSU.
DPDA Deterministic PDA
Deterministic Finite Automata And Regular Languages Prof. Busch - LSU.
Non-Deterministic Finite Automata
Decidable Languages Costas Busch - LSU.
Deterministic PDAs - DPDAs
The Post Correspondence Problem
Parsing Costas Busch - LSU.
Closure Properties of Context-Free languages
Elementary Questions about Regular Languages
Non-regular languages
Time Complexity We use a multitape Turing machine
Undecidable problems:
Properties of Context-Free languages
More Applications of the Pumping Lemma
DPDA Deterministic PDA
Applications of Regular Closure
The Chomsky Hierarchy Costas Busch - LSU.
Normal Forms for Context-free Grammars
Presentation transcript:

Decidable Problems of Regular Languages Costas Busch - LSU

Membership Question Question: Given regular language and string how can we check if ? Answer: Take the DFA that accepts and check if is accepted Costas Busch - LSU

DFA DFA Costas Busch - LSU

Given regular language how can we check if is empty: ? Question: Given regular language how can we check if is empty: ? Answer: Take the DFA that accepts Check if there is any path from the initial state to an accepting state Costas Busch - LSU

DFA DFA Costas Busch - LSU

Given regular language how can we check if is finite? Question: Given regular language how can we check if is finite? Answer: Take the DFA that accepts Check if there is a walk with cycle from the initial state to a final state Costas Busch - LSU

DFA is infinite DFA is finite Costas Busch - LSU

Given regular languages and how can we check if ? Question: Given regular languages and how can we check if ? Find if Answer: Costas Busch - LSU

and Costas Busch - LSU

or Costas Busch - LSU

Decidable Problems of Context-Free Languages Costas Busch - LSU

for context-free grammar find if string Membership Question: for context-free grammar find if string Membership Algorithms: Parsers Exhaustive search parser CYK parsing algorithm Costas Busch - LSU

Empty Language Question: for context-free grammar find if Algorithm: Remove useless variables Check if start variable is useless Costas Busch - LSU

Infinite Language Question: for context-free grammar find if is infinite Algorithm: 1. Remove useless variables 2. Remove unit and productions 3. Create dependency graph for variables 4. If there is a loop in the dependency graph then the language is infinite Costas Busch - LSU

Example: Infinite language Dependency graph Costas Busch - LSU

Costas Busch - LSU