Llamemos a un lenguaje determinista sin contexto si y solo si puede ser aceptado por un autómata determinista de empuje hacia abajo, y no determinista de lo contrario.
Llamemos a un lenguaje libre de contexto inherentemente ambiguo si y solo si todas las gramáticas libres de contexto que generan el lenguaje son ambiguas e inequívocas de lo contrario.
Now for the questions:
- Is it known whether there exists a deterministic, inherently ambiguous context-free language? If so, is there an (easy) example?
- Is it known whether there exists a nondeterministic, inherently ambiguous context-free language? If so, is there an (easy) example?
Clearly, since an inherently ambiguous context-free language exists ( is an example), the answer to one of these questions is easy, if it is known whether is deterministic or nondeterministic. I also assume that it's true that if there's a deterministic one, there's bound to be a nondeterministic one as well... but I've been surprised before. References are appreciated, and apologies in advance if this is a well-known, celebrated result (in which case, I'm completely unaware of it).
reading wikipedia & the answer & your comment on it, re (Q2) to state outright, all inherently ambiguous CFLs must be nondeterministic under the std defn (incl your own example!). ran across this ref
fuente