Answered step by step
Verified Expert Solution
Link Copied!

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.

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 to Expert-Tailored Solutions

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

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Graph Databases New Opportunities For Connected Data

Authors: Ian Robinson, Jim Webber, Emil Eifrem

2nd Edition

1491930896, 978-1491930892

More Books

Students also viewed these Databases questions

Question

Describe the new structures for the HRM function. page 676

Answered: 1 week ago