Download presentation
Presentation is loading. Please wait.
1
Costas Busch - RPI1 Standard Representations of Regular Languages Regular Languages DFAs NFAs Regular Expressions Regular Grammars
2
Costas Busch - RPI2 When we say: We are given a Regular Language We mean:Language is in a standard representation
3
Costas Busch - RPI3 Elementary Questions about Regular Languages
4
Costas Busch - RPI4 Membership Question Question:Given regular language and string how can we check if ? Answer:Take the DFA that accepts and check if is accepted
5
Costas Busch - RPI5 DFA
6
Costas Busch - RPI6 Given regular language how can we check if is empty: ? Take the DFA that accepts Check if there is any path from the initial state to a final state Question: Answer:
7
Costas Busch - RPI7 DFA
8
Costas Busch - RPI8 Given regular language how can we check if is finite? Take the DFA that accepts Check if there is a walk with cycle from the initial state to a final state Question: Answer:
9
Costas Busch - RPI9 DFA is infinite DFA is finite
10
Costas Busch - RPI10 Given regular languages and how can we check if ? Question: Find if Answer:
11
Costas Busch - RPI11 and
12
Costas Busch - RPI12 or
13
Costas Busch - RPI13 Non-regular languages
14
Costas Busch - RPI14 Regular languages Non-regular languages
15
Costas Busch - RPI15 How can we prove that a language is not regular? Prove that there is no DFA that accepts Problem: this is not easy to prove Solution: the Pumping Lemma !!!
16
Costas Busch - RPI16 The Pigeonhole Principle
17
Costas Busch - RPI17 pigeons pigeonholes
18
Costas Busch - RPI18 A pigeonhole must contain at least two pigeons
19
Costas Busch - RPI19........... pigeons pigeonholes
20
Costas Busch - RPI20 The Pigeonhole Principle........... pigeons pigeonholes There is a pigeonhole with at least 2 pigeons
21
Costas Busch - RPI21 The Pigeonhole Principle and DFAs
22
Costas Busch - RPI22 DFA with states
23
Costas Busch - RPI23 In walks of strings:no state is repeated
24
Costas Busch - RPI24 In walks of strings:a state is repeated
25
Costas Busch - RPI25 If string has length : Thus, a state must be repeated Then the transitions of string are more than the states of the DFA
26
Costas Busch - RPI26 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
Costas Busch - RPI27 In other words for a string : transitions are pigeons states are pigeonholes...... walk of Repeated state
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.