Solved

Consider the Following CFG S ? AB S ? BA**spaceB

Question 35

Multiple Choice

Consider the following CFG S ? aB S ? bA**spaceB ? b A ? a**spaceB ? bS A ? aS**spaceB ? aBB A ? bAA**spaceConsider the following derivation**spaceS ?aB**space?aaBB**space?aaBb**space?aabSb**space?aabbAb**space?aabbab**spaceThis derivation is


A) A leftmost derivation
B) A rightmost derivation
C) Both leftmost and rightmost derivation
D) Neither leftmost nor rightmost derivation

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions