This document provides practice problems for converting context-free grammars (CFGs) into Chomsky normal form (CNF) and Greibach normal form (GNF), as well as constructing pushdown automata (PDAs) for specific languages. Problem 1 asks to convert a CFG into CNF with rules S → ASA | aB, A→B|S, and B→b|∈. Problem 2 asks to convert a CFG into GNF with rules S → CA | BB, B → b | SB, and C→b, A→a. Problem 3 asks to construct a PDA with rules and diagram to recognize the language wcwR, where w is a string and wR is
This document provides practice problems for converting context-free grammars (CFGs) into Chomsky normal form (CNF) and Greibach normal form (GNF), as well as constructing pushdown automata (PDAs) for specific languages. Problem 1 asks to convert a CFG into CNF with rules S → ASA | aB, A→B|S, and B→b|∈. Problem 2 asks to convert a CFG into GNF with rules S → CA | BB, B → b | SB, and C→b, A→a. Problem 3 asks to construct a PDA with rules and diagram to recognize the language wcwR, where w is a string and wR is
This document provides practice problems for converting context-free grammars (CFGs) into Chomsky normal form (CNF) and Greibach normal form (GNF), as well as constructing pushdown automata (PDAs) for specific languages. Problem 1 asks to convert a CFG into CNF with rules S → ASA | aB, A→B|S, and B→b|∈. Problem 2 asks to convert a CFG into GNF with rules S → CA | BB, B → b | SB, and C→b, A→a. Problem 3 asks to construct a PDA with rules and diagram to recognize the language wcwR, where w is a string and wR is