6 votes 6 votes S1: Every DCFL has unambiguous grammar S2: Every language accepted by DPDA with final state is also accepted by DPDA with empty stack S1 is given as true and S2 false. Explain how?! Theory of Computation theory-of-computation dcfl unambiguous-grammar + – just_bhavana asked Jul 4, 2017 • retagged May 20, 2021 by Shiva Sagar Rao just_bhavana 3.4k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 9 votes 9 votes S1: Every DCFL has an unambiguous grammar. True [DCFL has at least one grammar which is unambiguous But DCFG can be ambiguous] S2: Every language accepted by DPDA with the final state is also accepted by DPDA with the empty stack. False [The set of languages accepted by a DPDA by the empty stack is a subset of the set of languages accepted by a DPDA by final state. Example 0*, 1* which is accepted by final state but not with empty stack since we can only do push but don't know when we start poping] Prashant. answered Jul 4, 2017 • selected Aug 9, 2017 by just_bhavana Prashant. comment Share Follow See all 5 Comments See all 5 5 Comments reply Show 2 previous comments sanjaysharmarose commented Sep 14, 2020 reply Follow Share Am I correct: DCFG are always unambiguous.(https://en.m.wikipedia.org/wiki/Ambiguous_grammar) DCFL are always unambiguous.(https://www.google.com/url?sa=t&source=web&rct=j&url=https://cs.wmich.edu/~elise/courses/cs6800/DCFL.pptx&ved=2ahUKEwiVzdHx8ufrAhVM8HMBHWJeAlcQFjAFegQIBBAB&usg=AOvVaw3BPDAYtQMSLoh9RJV55gEL) 0 votes 0 votes bthebestSelf commented Sep 17, 2020 reply Follow Share If you minimize grammar,"ab" will no longer exist in S production 0 votes 0 votes Vishal_kumar98 commented Oct 3, 2021 reply Follow Share https://gateoverflow.in/940/gate-cse-2003-question-51 This question is the example of your doubt 0 votes 0 votes Please log in or register to add a comment.
4 votes 4 votes Regarding S2: Conversion from Final state to Empty state PDA & vice-versa involves adding epsilon transition. It does not leave DCFL to DCFL but makes it CFL. Thus S2 is false. Swati Rauniyar answered Jul 6, 2017 Swati Rauniyar comment Share Follow See all 0 reply Please log in or register to add a comment.
3 votes 3 votes S1 is true because DPDA cannot have choice, therefore the grammer will be unambiguous. For S2 refer: https://gateoverflow.in/377/gate1999_1-6 aarsy answered Jul 4, 2017 aarsy comment Share Follow See all 0 reply Please log in or register to add a comment.