MC logo

Derivation Problem

^  Practice Problems

Consider the following CFG:
SB(S) | B | BC
BaB | bbB | b
CcCc | c | [B]
Which of the following strings can be derived from the start symbol S? Click on the arrow for the answer.

1. bbb
2. bb
3. ba
4. abbb(bccc)
5. bbb[ab]
6. cabc
7. bbab(bc[b]c)
8. bbbccc