edited by
440 views
2 votes
2 votes
A->A*B                                   {1}

A->E                                       {A.val=E.val}

B->C+D                                  {2}

C->C-D                                   {C.val=D.val.+C.val}

D->D-E                                    {D.val=D.val+E..val}

E->E/F                                    {3}

F->G                                       {F.val=G.val}

A,B,C,D,E,F,G->id                  {A.val->id,B.val->id,C.val->id,D.val->id,E.val->id,F.val->id,G.val->id}

Fill 1 ,2 and 3 so that for:6*4-3-5/4+12 it outputs 32.
edited by

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
1
jay03 asked Nov 28, 2022
490 views
what should be the ans??according to me answer should be 7 nodes, 8 edges but 5 nodes, 6 edges is given in the answer key!please tell me what am i doing wrong.
3 votes
3 votes
1 answer
2
Dknights asked Jan 31, 2023
525 views
Find the value of $\lim_{x \rightarrow 0 } \dfrac{x \tan2x - 2x\tan x}{(1-\cos 2x)^2} \rule{1 in}{.5 pt}.$
1 votes
1 votes
2 answers
3
Dknights asked Oct 27, 2022
1,555 views
Is this statement right or wrong?A DFA does not contain a dead configuration.and what is the mean of dead configuration exactly?
0 votes
0 votes
1 answer
4
Nitesh_Yadav asked Jan 4, 2022
504 views
Find the time complexity of the given program