Skip to main content
1 of 3

Ambiguos Grammar detenction algorithm

I tried to solve if a grammar is ambiguos or not. I know that I have to find a word that can be generate by two different leftmost derivations. Is there any algorithm to find a word that, if the grammar is ambiguos, can be generated by two different trees?