Languages and Finite Automata - PowerPoint PPT Presentation

1 / 65
About This Presentation
Title:

Languages and Finite Automata

Description:

Languages Accepted by FAs. FA. Definition: The language contains. all input strings accepted by ... Language Accepted by FAs. For a FA. Language accepted by : ... – PowerPoint PPT presentation

Number of Views:27
Avg rating:3.0/5.0
Slides: 66
Provided by: cost70
Category:

less

Transcript and Presenter's Notes

Title: Languages and Finite Automata


1
Formal Languages Finite Automata Hinrich
Schütze IMS, Uni Stuttgart, WS 2007/08 Slides
based on RPI CSCI 2400 Thanks to Costas Busch
2
Chomsky Hierarchy
  • Wikipedia

3
Finite Automaton

Input
String
Output
Accept or Reject
Finite Automaton
4
Transition Graph

initial state
accepting state
transition
state
5
Initial Configuration

Input String
6
Reading the Input

7

8

9

10
Input finished
accept
11
Rejection

12

13

14

15
Input finished
reject
16
Acceptance or Rejection?

17
Initial State

18
Rejection

reject
19
Language?
20
Acceptance Example
21
(No Transcript)
22
(No Transcript)
23
(No Transcript)
24
Input finished
accept
25
Rejection Example
26
(No Transcript)
27
(No Transcript)
28
(No Transcript)
29
Input finished
reject
30
Languages Accepted by FAs
  • FA
  • Definition
  • The language contains
  • all input strings accepted by
  • strings that bring
  • to an accepting state

31
Example L(M) ?

accept
32
L(M) abba

accept
33
L(M) ?

accept
accept
accept
34

accept
accept
accept
35
L(M) ?

trap state
accept
36

trap state
accept
37
Formal Definition
  • Finite Automaton (FA)

set of states
input alphabet
transition function
initial state
set of accepting states
38
Input Alphabet

39
Set of States

40
Initial State

41
Set of Accepting States

42
Transition Function

43

44

45
(No Transcript)
46
Transition Function

47
Extended Transition Function

48
(No Transcript)
49
(No Transcript)
50
(No Transcript)
51
Observation if there is a walk from to
with label then
52
Example There is a walk from to
with label
53
Recursive Definition
54

55
Language Accepted by FAs
  • For a FA
  • Language accepted by

56
Observation
  • Language rejected by

57
L(M) ?

accept
58

all strings with prefix
accept
59
L(M)?

60
Example

all strings without substring
61
L(M) ?

62

63
Regular Languages
  • Definition
  • A language is regular if there is
  • FA such that
  • Observation
  • All languages accepted by FAs
  • form the family of regular languages

64
Examples of regular languages
all strings with prefix
all strings without substring
There exist automata that accept these Languages
(see previous slides).
65
There exist languages which are not Regular
Example
There is no FA that accepts such a language
(we will prove this later in the class)
Write a Comment
User Comments (0)
About PowerShow.com