Title: Standard Representations of Regular Languages
1Standard Representations of Regular Languages
Regular Languages
DFAs
Regular Grammars
NFAs
Regular Expressions
2When we say
We are given a Regular Language
We mean
Language is in a standard representation
3Elementary QuestionsaboutRegular Languages
4Membership Question
Question
Given regular language and string how can we
check if ?
5DFA
DFA
6Given regular language how can we check if
is empty ?
Question
Answer
Take the DFA that accepts Check if there
is any path from the initial state to a final
state
7DFA
DFA
8Given regular language how can we check if
is finite?
Question
Answer
Take the DFA that accepts Check if there
is a walk with cycle from the initial state to a
final state
9DFA
is infinite
DFA
is finite
10Question
Given regular languages and how can we
check if ?
11(No Transcript)
12(No Transcript)
13Non-regular languages
14Non-regular languages
Regular languages
15How can we prove that a language is not regular?
Problem this is not easy to prove
Solution the Pumping Lemma !!!
16The Pigeonhole Principle
17pigeons
pigeonholes
18A pigeonhole must contain at least two pigeons
19pigeons
...........
pigeonholes
...........
20The Pigeonhole Principle
pigeons
pigeonholes
There is a pigeonhole with at least 2 pigeons
...........
21The Pigeonhole Principleand DFAs
22DFA with states
23In walks of strings
no state is repeated
24In walks of strings
a state is repeated
25If string has length
Then the transitions of string are more than the
states of the DFA
Thus, a state must be repeated
26In general, for any DFA String has
length number of states
A state must be repeated in the walk of
walk of
......
......
Repeated state
27In other words for a string
transitions are pigeons
states are pigeonholes
walk of
......
......
Repeated state