1 Non Deterministic Automata. 2 Alphabet = Nondeterministic Finite Accepter (NFA)

Slides:



Advertisements
Similar presentations
EcoTherm Plus WGB-K 20 E 4,5 – 20 kW.
Advertisements

Números.
1 A B C
Trend for Precision Soil Testing % Zone or Grid Samples Tested compared to Total Samples.
Trend for Precision Soil Testing % Zone or Grid Samples Tested compared to Total Samples.
AGVISE Laboratories %Zone or Grid Samples – Northwood laboratory
Trend for Precision Soil Testing % Zone or Grid Samples Tested compared to Total Samples.
Variations of the Turing Machine
PDAs Accept Context-Free Languages
ALAK ROY. Assistant Professor Dept. of CSE NIT Agartala
1
EuroCondens SGB E.
Worksheets.
Slide 1Fig 26-CO, p.795. Slide 2Fig 26-1, p.796 Slide 3Fig 26-2, p.797.
Slide 1Fig 25-CO, p.762. Slide 2Fig 25-1, p.765 Slide 3Fig 25-2, p.765.
& dding ubtracting ractions.
Sequential Logic Design
Copyright © 2013 Elsevier Inc. All rights reserved.
Addition and Subtraction Equations
By John E. Hopcroft, Rajeev Motwani and Jeffrey D. Ullman
David Burdett May 11, 2004 Package Binding for WS CDL.
Create an Application Title 1Y - Youth Chapter 5.
Add Governors Discretionary (1G) Grants Chapter 6.
CALENDAR.
CHAPTER 18 The Ankle and Lower Leg
Introduction to Turing Machines
The 5S numbers game..
突破信息检索壁垒 -SciFinder Scholar 介绍
A Fractional Order (Proportional and Derivative) Motion Controller Design for A Class of Second-order Systems Center for Self-Organizing Intelligent.
Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)
Media-Monitoring Final Report April - May 2010 News.
1Applied-Apologetics The Triunity of God 5Applied-Apologetics.
Break Time Remaining 10:00.
The basics for simulations
Turing Machines.
PP Test Review Sections 6-1 to 6-6
2013 Fox Park Adopt-A-Hydrant Fund Raising & Beautification Campaign Now is your chance to take part in an effort to beautify our neighborhood by painting.
Regression with Panel Data
Dynamic Access Control the file server, reimagined Presented by Mark on twitter 1 contents copyright 2013 Mark Minasi.
TCCI Barometer March “Establishing a reliable tool for monitoring the financial, business and social activity in the Prefecture of Thessaloniki”
Copyright © 2012, Elsevier Inc. All rights Reserved. 1 Chapter 7 Modeling Structure with Blocks.
Progressive Aerobic Cardiovascular Endurance Run
Biology 2 Plant Kingdom Identification Test Review.
MaK_Full ahead loaded 1 Alarm Page Directory (F11)
Facebook Pages 101: Your Organization’s Foothold on the Social Web A Volunteer Leader Webinar Sponsored by CACO December 1, 2010 Andrew Gossen, Senior.
TCCI Barometer September “Establishing a reliable tool for monitoring the financial, business and social activity in the Prefecture of Thessaloniki”
When you see… Find the zeros You think….
Midterm Review Part II Midterm Review Part II 40.
2011 WINNISQUAM COMMUNITY SURVEY YOUTH RISK BEHAVIOR GRADES 9-12 STUDENTS=1021.
Before Between After.
2011 FRANKLIN COMMUNITY SURVEY YOUTH RISK BEHAVIOR GRADES 9-12 STUDENTS=332.
Subtraction: Adding UP
Numeracy Resources for KS2
1 Non Deterministic Automata. 2 Alphabet = Nondeterministic Finite Accepter (NFA)
1 Let’s Recapitulate. 2 Regular Languages DFAs NFAs Regular Expressions Regular Grammars.
Static Equilibrium; Elasticity and Fracture
Converting a Fraction to %
Resistência dos Materiais, 5ª ed.
Clock will move after 1 minute
& dding ubtracting ractions.
Physics for Scientists & Engineers, 3rd Edition
Select a time to count down from the clock above
1.step PMIT start + initial project data input Concept Concept.
A Data Warehouse Mining Tool Stephen Turner Chris Frala
1 Dr. Scott Schaefer Least Squares Curves, Rational Representations, Splines and Continuity.
Schutzvermerk nach DIN 34 beachten 05/04/15 Seite 1 Training EPAM and CANopen Basic Solution: Password * * Level 1 Level 2 * Level 3 Password2 IP-Adr.
1 Non-Deterministic Finite Automata. 2 Alphabet = Nondeterministic Finite Automaton (NFA)
Presentation transcript:

1 Non Deterministic Automata

2 Alphabet = Nondeterministic Finite Accepter (NFA)

3 Two choices Alphabet = Nondeterministic Finite Accepter (NFA)

4 No transition Two choices No transition Alphabet = Nondeterministic Finite Accepter (NFA)

5 First Choice

6

7

8 “accept” First Choice All input is consumed

9 Second Choice

10 Second Choice

11 Second Choice No transition: the automaton hangs

12 Second Choice “reject” Input cannot be consumed

13 An NFA accepts a string: when there is a computation of the NFA that accepts the string All the input is consumed and the automaton is in a final state

14 Example is accepted by the NFA: “accept” “reject” because this computation accepts

15 Rejection example

16 First Choice

17 First Choice “reject”

18 Second Choice

19 Second Choice

20 Second Choice “reject”

21 An NFA rejects a string: when there is no computation of the NFA that accepts the string All the input is consumed and the automaton is in a non final state The input cannot be consumed

22 Example is rejected by the NFA: “reject” All possible computations lead to rejection

23 Rejection example

24 First Choice

25 First Choice No transition: the automaton hangs

26 “reject” First Choice Input cannot be consumed

27 Second Choice

28 Second Choice

29 Second Choice No transition: the automaton hangs

30 Second Choice “reject” Input cannot be consumed

31 is rejected by the NFA: “reject” All possible computations lead to rejection

32 Language accepted:

33 Lambda Transitions

34

35

36 (read head doesn’t move)

37

38 “accept” String is accepted all input is consumed

39 Rejection Example

40

41 (read head doesn’t move)

42 No transition: the automaton hangs

43 “reject” String is rejected Input cannot be consumed

44 Language accepted:

45 Another NFA Example

46

47

48

49 “accept”

50 Another String

51

52

53

54

55

56

57 “accept”

58 Language accepted

59 Another NFA Example

60 Language accepted

61 Remarks: The symbol never appears on the input tape Extreme automata:

62 NFA DFA NFAs are interesting because we can express languages easier than DFAs

63 Formal Definition of NFAs Set of states, i.e. Input aplhabet, i.e. Transition function Initial state Final states

64 Transition Function

65

66

67

68 Extended Transition Function

69

70

71 Formally It holds if and only if there is a walk from to with label

72 The Language of an NFA

73

74

75

76

77 Formally The language accepted by NFA is: where and there is some (final state)

78

79 Equivalence of NFAs and DFAs

80 Equivalence of Machines For DFAs or NFAs: Machine is equivalent to machine if

81 Example NFA DFA

82 Since machines and are equivalent DFA NFA

83 Equivalence of NFAs and DFAs Question: NFAs = DFAs ? Same power? Accept the same languages?

84 Equivalence of NFAs and DFAs Question: NFAs = DFAs ? Same power? Accept the same languages? YES!

85 Languages accepted by NFAs Languages accepted by DFAs Regular Languages Thus, NFAs accept the regular languages