Problème 1.

Give a context free grammar for the following language:

Solution

The following CFG generates the language :

Problème 2.

Let

and let

Complete the pushdown automata such that , where .

Solution

Given that the will accept all string where the number of a’s, b’s, and c’s are not all the same or there are zero of one or more types of characters, the following is the pushdown automata

Problème 3.

The first table:

10x#c
---
---
====---
---
====---
---
---
---
========--========
========--========
========--========
--
--
-

The second table:

10x#c
--========--
--========--
========--====

The final transition table:

10c