Answered step by step
Verified Expert Solution
Link Copied!

Question

00
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.

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions