Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

answer problem1, I post page 5 below Another Example NFA Accepting and rejecting strings o What is the accepting path of abb through M? o

answer problem1, I post page 5 belowimage text in transcribedimage text in transcribed

Another Example NFA Accepting and rejecting strings o What is the accepting path of abb through M? o What other paths are possible? o What are the accepting paths of ab machN = NFA (S.fromList [0. .5]) (S.fromList [Move 0 'a' 1, through N? o What happens with N and aa? Move 1 'b' 2, Move 0 ,a, 3, Move 3 'b' 4, Emove 3 4, Move 4 'b' 5]) (S.fromList [2,5]) Note the two sorts of nondeterminism this machine exhibits. 0 Machine M Machine N im Rover (CIS 352 Lexical Analysis February 5, 2018 15 /39 im Royer (CIS 352) February 5,2018 16 16/39 A small-step semantics for an NFA Applying the Small-Step Rules, 1 Notation For M = (States, Moves, start, Final): M=((0' 1, 2, 3 },{041,142, 242, 2..3},0, { 3 }) M-ss' =def (s, a, s') Moves MH s s,-def (s, e,s') e Moves. 2 ((s,a,s) E Moves) ((s,e,s) E Moves) An accepting path for baaa! Stage direction: Copy these onto the board. Another Example NFA Accepting and rejecting strings o What is the accepting path of abb through M? o What other paths are possible? o What are the accepting paths of ab machN = NFA (S.fromList [0. .5]) (S.fromList [Move 0 'a' 1, through N? o What happens with N and aa? Move 1 'b' 2, Move 0 ,a, 3, Move 3 'b' 4, Emove 3 4, Move 4 'b' 5]) (S.fromList [2,5]) Note the two sorts of nondeterminism this machine exhibits. 0 Machine M Machine N im Rover (CIS 352 Lexical Analysis February 5, 2018 15 /39 im Royer (CIS 352) February 5,2018 16 16/39 A small-step semantics for an NFA Applying the Small-Step Rules, 1 Notation For M = (States, Moves, start, Final): M=((0' 1, 2, 3 },{041,142, 242, 2..3},0, { 3 }) M-ss' =def (s, a, s') Moves MH s s,-def (s, e,s') e Moves. 2 ((s,a,s) E Moves) ((s,e,s) E Moves) An accepting path for baaa! Stage direction: Copy these onto the board

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

fscanf retums a special value EOF that stands for...

Answered: 1 week ago

Question

What does the start( ) method defined by Thread do?

Answered: 1 week ago