Question: The language A = L ( G ) is defined as the set of strings where each string in A is of the form abkaEabka
The language A LG is defined as the set of strings where each string in A is of the form
abkaEabka for any k where E is an arithmetic expression over floatingpoint numbers, as
defined by the set of production rules of the corresponding Context free grammar. Consider the
following context free grammar G for the language A:
G VN VT P S
where,
VN S T C H Y N is the set of nonterminals variables;
VT a b the set of terminal symbols
which includes a dot for floatpoint numbers;
the starting variable is S; and
P: the set of production rules are
S aT a
T bT b aCa
C CC CC CC CC C H
H YY YY
Y NY N
N
Let us consider the string wabbbaabbba and check whether this string
can be generated by the above CFG or not.
This, we can show by using the derivation with G as follows:
S
aT a
abT ba
abbT bba
abbbT bbba
abbbaCabba
abbbaCabbba
abbbaCCabbba
abbbaCCabbba
abbbaCCCabbba
abbbaHCCabbba
abbbaY CCabbba
abbbaNY CCabbba
abbbaNN CCabbba
abbbaN CCabbba
abbbaCCabbba
abbbaHCabbba
abbbaY Y Cabbba
abbbaN Y Cabbba
abbbaY Cabbba
abbbaNY Cabbba
abbbaNNY Cabbba
abbbaNNN Cabbba
abbbaNN Cabbba
abbbaN Cabbba
abbbaCabbba
abbbaHabbba
abbbaY abbba
abbbaN abbba
abbbaabbba
PDA for A
First you are to construct a PDA M QSigma Gamma delta q ZF that recognizes A where Sigma is
defined in equation
In this project, the machine you design needs to only recognize the language A not to
evaluate the arithmetic expression
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
