Derivation of a string from a Context-Free Grammar
What is the primary difference between leftmost and rightmost derivations?
In a derivation, what determines which production rule should be applied to a selected nonterminal?
What information does a complete derivation sequence provide?
For the grammar S → (S) | SS | ε, what is the correct leftmost derivation sequence to produce the string '()()'?
When deriving '(())', which production rule should be applied first to the start symbol S?
When is a derivation considered successfully completed?
Consider the grammar E → E + T | T; T → T * F | F; F → (E) | id. For the string 'id + id * id', which parse tree correctly represents the unambiguous parse (respecting operator precedence)?
For the grammar S → aSb | ab, what is the minimum number of derivation steps needed to generate 'aaabbb'?
Why can an ambiguous grammar such as E → E + E | E * E | id be problematic in practical applications?