724 views
0 votes
0 votes

Consider the following two ambigious context free grammars. 


Which of the above ambigious CFG’s has an equivalent unambiguous CFG

  • I only
  • II only
  • Both I and II
  • Neither I nor II

3 Answers

1 votes
1 votes

every DCFL have unambiguous grammar .

both languages are DCFL then it must have an equivalent unambiguous grammar .

0 votes
0 votes
For 1st one we have $S\rightarrow aSb / \epsilon$.

For 2nd one we have $S\rightarrow aaSb/ aab/ aSb/ \epsilon$

Related questions

1.0k
views
1 answers
0 votes
eyeamgj asked Mar 20, 2018
1,040 views
We have three stations $P, Q, R$ connected in serial manner. $P$ is connected to $Q$ through a $3Gbps$ fibre optic link and length is $500Km$. $Q$ is connected to $R$ thr...
222
views
1 answers
0 votes
Ayanava Dutta asked Mar 17
222 views
How many 256 X 1K bit chips are required to build 1 MB of memory?
242
views
0 answers
0 votes
Ayanava Dutta asked Mar 17
242 views
Number of nodes in the DAG(Directed Acyclic Graph) representing (a+b)+c+(a+b)
299
views
1 answers
0 votes
gaddalakonda_ganesh asked Apr 10, 2023
299 views
Which of the following are truea. A relational table can have atmost one foreign keyb. The main purpose of foreign key is to optimize the queries by query optimizer.