Question: please answer the question for b ) and c ) like the diagram provided for a ) 1 . ( AU ex . 1 1
please answer the question for b and c like the diagram provided for
a
AU ex Recall the program in AU fig. :
TREE B
TREE firstB, secondB;
ifnextTerminal follow production
nextTerminal ;
firstB B ;
if firstB FAILED && nextTerminal
nextTerminal ;
secondB B ;
if secondB FAILED
return FAILED ;
else
return makeNode
B
makeNode
firstB,
makeNode
secondB
;
else first call to B failed
return FAILED ;
else follow production
return makeNodeB makeNodee ;
Show the sequence of calls made by the program of Fig. on the inputs:
a
b
c
Each string is followed by the endmarker symbol, ENDM
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
