VibraXX
Live Quiz Arena
🎁 1 Free Round Daily
⚡ Enter Arena
HomeCategoriesLogic & PuzzlesQuestion
Question
Logic & Puzzles

Which outcome occurs when a context-free grammar (CFG) is used to define a formal language with inherently ambiguous structures?

A)Simplified parser implementation is achieved
B)Multiple parse trees become possible
C)Deterministic parsing becomes guaranteed
D)Unambiguous meaning of phrases ensured

💡 Explanation

Multiple parse trees become possible because ambiguity in a CFG means the same string can be derived via different production rules using distinct parse trees; therefore, the grammar is not uniquely interpretable, rather than ensuring a single deterministic parse.

🏆 Up to £1,000 monthly prize pool

Ready for the live challenge? Join the next global round now.
*Terms apply. Skill-based competition.

⚡ Enter Arena

Related Questions

Browse Logic & Puzzles