Question: Let = {a, b, } and let F = {w x | w, x {a, b} and w and x have the same number of

Let = {a, b, } and let F = {w x | w, x {a, b} and w and x have the same number of as or the same number of bs} So, for example, aaa aa F because both w = aaa andx = aa have zero bs.

(a) Prove that F is not regular.

(b) Is F context-free? Prove your answer.

Let = {a, b, } and let F = {w x |

2. Let = {a, b,-) and let F = {w-z | w, z {a, b)' and to and r have the same number of a's or the same number of b's} So, for example, aaa-aa e F because both w aaa andr = aa have zero bs. (a) Prove that F is not regular. (b) Is F context-free? Prove your

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!