Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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.
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 yourStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started