What is a derivation in a formal grammar?

Formal Languages Questions



80 Short 63 Medium 57 Long Answer Questions Question Index

What is a derivation in a formal grammar?

A derivation in a formal grammar is a sequence of production rule applications that transforms an initial symbol or string into a final symbol or string. It represents the step-by-step process of generating or deriving a valid sentence or string in the language defined by the grammar. Each step in the derivation involves replacing a nonterminal symbol with a production rule, until only terminal symbols remain.