evinda
Gold Member
MHB
- 3,741
- 0
Evgeny.Makarov said:The textbook by Lewis and Papadimitriou also does not have anything on deterministic context-free grammars, though it has a section on deterministic PDAs. Even Wikipedia, which has a detailed article on regular context-free grammars, does not give the definition of deterministic CFGs, though it has a small article about them. So, do you plan to undertake a little research project to study deterministic CFGs as a part of solving one problem?
I try to describe the function of the PDA:
For each $a$ that is read,we put an $a$ in the stack.
When,the first $b$ is read,we begin to pop an $a$ for each $b$.
But..how can the stack get empty,if we know that the number of $a$ that is read shouldn't be equal to the number of $b$ ??