Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 Finite Automata. 2 Finite Automaton Input “Accept” or “Reject” String Finite Automaton Output.

Similar presentations


Presentation on theme: "1 Finite Automata. 2 Finite Automaton Input “Accept” or “Reject” String Finite Automaton Output."— Presentation transcript:

1 1 Finite Automata

2 2 Finite Automaton Input “Accept” or “Reject” String Finite Automaton Output

3 3 Transition Graph initial state accepting state transition

4 4 Initial Configuration Input String

5 5 Reading the Input

6 6

7 7

8 8

9 9 accept Input finished

10 10 Rejection

11 11

12 12

13 13

14 14 reject Input finished

15 15 Another Rejection

16 16 reject

17 17 Another Example

18 18

19 19

20 20

21 21 accept Input finished

22 22 Rejection Example

23 23

24 24

25 25

26 26 reject Input finished

27 27 Languages Accepted by FAs FA Definition: The language contains all input strings accepted by = { strings that bring to an accepting state}

28 28 Example accept

29 29 Example accept

30 30 Example accept trap state

31 31 Formal Definition Finite Automaton (FA) : set of states : input alphabet : transition function : initial state : set of accepting states

32 32 Input Alphabet

33 33 Set of States

34 34 Initial State

35 35 Set of Accepting States

36 36 Transition Function

37 37

38 38

39 39

40 40 Transition Function

41 41 Extended Transition Function

42 42

43 43

44 44

45 45 Observation: if there is a walk from to with label then

46 46 Example: There is a walk from to with label

47 47 Recursive Definition

48 48

49 49 Language Accepted by FAs For a FA Language accepted by :

50 50 Observation Language rejected by :

51 51 Example = { all strings with prefix } accept

52 52 Example = { all strings without substring }

53 53 Example

54 54 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

55 55 { all strings with prefix } { all strings without substring } Examples of regular languages: There exist automata that accept these Languages (see previous slides).

56 56 There exist languages which are not Regular: There is no FA that accepts such a language (we will prove this later in the class) Example:


Download ppt "1 Finite Automata. 2 Finite Automaton Input “Accept” or “Reject” String Finite Automaton Output."

Similar presentations


Ads by Google