CSci 150: Foundations of computer science I
Home Syllabus Assignments Tests

printable version

Exam 2 Review A

[1] [2] [3] [4] [5] [6] [7] [8] [9]

Problem X2rA.1.

Consider the following context-free grammar.

S λ | a S b S | b S a S
Give a derivation of the string aabbab using this grammar.