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

Database Theory Icdt 97 6th International Conference Delphi Greece January 8 10 1997 Proceedings Lncs 1186

Authors: Foto N. Afrati ,Phokion G. Kolaitis

1st Edition

3540622225, 978-3540622222

More Books

Students also viewed these Databases questions