Q.

Consider the following

CFG
S → aB S → bA**spaceB → b A → a**spaceB → bS A → aS**spaceB → aBB A → bAA**space

Consider the following derivation
**spaceS ⇒aB**space⇒aaBB**space⇒aaBb**space⇒aabSb**space⇒aabbAb**space⇒aabbab**space

This derivation is

A. A leftmost derivation
B. A rightmost derivation
C. Both leftmost and rightmost derivation
D. Neither leftmost nor rightmost derivation
Answer» D. Neither leftmost nor rightmost derivation
1.9k
0
Do you find this helpful?
15

View all MCQs in

Theory of Computation

Discussion

No comments yet