Back to the 2024 paper

Module 2: Context-Free Languages (CFL) and PDA

20247m

Construct a PDA for the grammar:

S0BBS \to 0BB
B0S1S0B \to 0S \mid 1S \mid 0

Test whether 01040104 is accepted by this PDA.

Similar questions