Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Let the alphabet C be { a , b , c } . Let the language x be the set of all strings over C

Let the alphabet C be {a,b,c}. Let the language x be the set of all strings over C with at
least two occurrences of b. Let Y be the language of all strings over C that never have two
occurrences of c in a row. Let Z be the language of all strings over C in which every c is
followed by an a.(Recall that any string with no c's is thus in Z.)
(a) List the three-letter strings in each of x,Y, and Z. The easiest way to do this may
be to first list all 27 strings in C3 and then see which ones meet the given conditions.
(b) List the four-letter strings that are both in x and in Y, those that are both in x and
in Z, those that are both in Y and in Z, and those that are in all three sets. How
many total strings are in C4?
(c) Are any of x,Y, or Z subsets of any of the others?
(d) Suppose u and v are two strings in x. Do we know that the strings uR,vR,uv, and
vu are all in x? Either explain why this is always true, or give an example where it is
not.
(e) Repeat the previous question for the languages Y and Z.
image text in transcribed

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

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

Recommended Textbook for

Rules In Database Systems Third International Workshop Rids 97 Sk Vde Sweden June 26 28 1997 Proceedings Lncs 1312

Authors: Andreas Geppert ,Mikael Berndtsson

1997th Edition

3540635165, 978-3540635161

More Books

Students also viewed these Databases questions

Question

How effective is integrity in the absence of other dimensions?

Answered: 1 week ago