Standard Representations of Regular Languages - PowerPoint PPT Presentation

1 / 27
About This Presentation
Title:

Standard Representations of Regular Languages

Description:

with at least 2 pigeons. Costas Busch - RPI. 21. The Pigeonhole Principle. and. DFAs ... transitions are pigeons. states are pigeonholes. walk of. Repeated state ... – PowerPoint PPT presentation

Number of Views:74
Avg rating:3.0/5.0
Slides: 28
Provided by: costas4
Category:

less

Transcript and Presenter's Notes

Title: Standard Representations of Regular Languages


1
Standard Representations of Regular Languages
Regular Languages
DFAs
Regular Grammars
NFAs
Regular Expressions
2
When we say
We are given a Regular Language
We mean
Language is in a standard representation
3
Elementary QuestionsaboutRegular Languages

4
Membership Question
Question
Given regular language and string how can we
check if ?
5
DFA
DFA
6
Given 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
7
DFA
DFA
8
Given 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
9
DFA
is infinite
DFA
is finite
10
Question
Given regular languages and how can we
check if ?
11
(No Transcript)
12
(No Transcript)
13
Non-regular languages

14
Non-regular languages
Regular languages
15
How can we prove that a language is not regular?
Problem this is not easy to prove
Solution the Pumping Lemma !!!
16
The Pigeonhole Principle

17
pigeons

pigeonholes
18

A pigeonhole must contain at least two pigeons
19

pigeons
...........
pigeonholes
...........
20
The Pigeonhole Principle

pigeons
pigeonholes
There is a pigeonhole with at least 2 pigeons
...........
21
The Pigeonhole Principleand DFAs

22

DFA with states
23
In walks of strings
no state is repeated

24
In walks of strings
a state is repeated

25
If string has length

Then the transitions of string are more than the
states of the DFA
Thus, a state must be repeated
26
In general, for any DFA String has
length number of states
A state must be repeated in the walk of
walk of
......
......
Repeated state
27
In other words for a string
transitions are pigeons
states are pigeonholes
walk of
......
......
Repeated state
Write a Comment
User Comments (0)
About PowerShow.com