homework3

CSE 354 - Automata Theory and Formal Languages
HOMEWORK 3
Due date: PS. Hour 16.12.2014
1) Design a PDA for ๐’‚๐’Š ๐’ƒ๐’‹ ๐’„๐’Œ ๐’Š = ๐’‹ ๐’๐’“ ๐’‹ = ๐’Œ
2) Convert the grammer below to CNF
๐‘บ โ†’ ๐’‚๐‘บ๐’ƒ ๐‘จ๐’‚ ๐‘ฉ๐’ƒ | ๐‘จ
๐‘จ โ†’ ๐’‚๐‘จ
๐‘ฉ โ†’ ๐’ƒ๐‘ฉ | ๐œบ
3) Using the grammer G below, use the CYK algorithm to
determine whether string โ€œaababโ€ is in L(G) or not.
S -> AB | BC
A -> BA | a
B -> CC | b
C -> AB | a