Download presentation
Presentation is loading. Please wait.
Published byBerenice Carter Modified over 9 years ago
1
Fall 2006Costas Busch - RPI1 Deterministic Finite Automaton (DFA) Input Tape “Accept” or “Reject” String Finite Automaton Output
2
Fall 2006Costas Busch - RPI2 Formal Definition Deterministic Finite Automaton (DFA) : set of states : input alphabet : transition function : initial state : set of accepting states
3
Fall 2006Costas Busch - RPI3 Language Accepted:
4
Fall 2006Costas Busch - RPI4 Transition Graph initial state accepting state transition
5
Fall 2006Costas Busch - RPI5 For every state, there is a transition for every symbol in the alphabet
6
Fall 2006Costas Busch - RPI6 Set of States Example
7
Fall 2006Costas Busch - RPI7 Input Alphabet :the input alphabet never contains Example
8
Fall 2006Costas Busch - RPI8 Initial State Example
9
Fall 2006Costas Busch - RPI9 Set of Accepting States Example
10
Fall 2006Costas Busch - RPI10 Transition Function Describes the result of a transition from state with symbol
11
Fall 2006Costas Busch - RPI11 Example:
12
Fall 2006Costas Busch - RPI12
13
Fall 2006Costas Busch - RPI13 Transition Table for states symbols
14
Fall 2006Costas Busch - RPI14 To accept a string: all the input string is scanned and the last state is accepting To reject a string: all the input string is scanned and the last state is non-accepting
15
Fall 2006Costas Busch - RPI15 Initial Configuration Input String Initial state Input Tape head
16
Fall 2006Costas Busch - RPI16 Scanning the Input
17
Fall 2006Costas Busch - RPI17
18
Fall 2006Costas Busch - RPI18
19
Fall 2006Costas Busch - RPI19 accept Input finished
20
Fall 2006Costas Busch - RPI20 A Rejection Case Input String
21
Fall 2006Costas Busch - RPI21
22
Fall 2006Costas Busch - RPI22
23
Fall 2006Costas Busch - RPI23 reject Input finished
24
Fall 2006Costas Busch - RPI24 Another Rejection Case Tape is empty reject Input Finished
25
Fall 2006Costas Busch - RPI25 Extended Transition Function Describes the resulting state after scanning string from state
26
Fall 2006Costas Busch - RPI26 Example:
27
Fall 2006Costas Busch - RPI27
28
Fall 2006Costas Busch - RPI28
29
Fall 2006Costas Busch - RPI29 Another Example Accept state Accept state Accept state
30
Fall 2006Costas Busch - RPI30 Empty Tape accept Input Finished
31
Fall 2006Costas Busch - RPI31 Another Example Accept state trap state
32
Fall 2006Costas Busch - RPI32 Input String
33
Fall 2006Costas Busch - RPI33
34
Fall 2006Costas Busch - RPI34
35
Fall 2006Costas Busch - RPI35 accept Input finished
36
Fall 2006Costas Busch - RPI36 A rejection case Input String
37
Fall 2006Costas Busch - RPI37
38
Fall 2006Costas Busch - RPI38
39
Fall 2006Costas Busch - RPI39 reject Input finished
40
Fall 2006Costas Busch - RPI40 Language Accepted:
41
Fall 2006Costas Busch - RPI41 Another Example Alphabet: Language Accepted:
42
Fall 2006Costas Busch - RPI42 More DFA Examples Empty languageAll strings
43
Fall 2006Costas Busch - RPI43 Language of the empty string
44
Fall 2006Costas Busch - RPI44 = { all strings with prefix }
45
Fall 2006Costas Busch - RPI45 = { all binary strings containing substring }
46
Fall 2006Costas Busch - RPI46 = { all binary strings without substring }
47
Fall 200647
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.