Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

Suppose that \({\bf{A}}\) and \({\bf{B}}\) are finite subsets of \({{\bf{V}}^{\bf{*}}}\), where \({\bf{V}}\) is an alphabet. Is it necessarily true that \(\left| {{\bf{A B}}} \right|{\bf{ = }}\left| {{\bf{B A}}} \right|\)?

Short Answer

Expert verified

\(\left| {{\bf{A B}}} \right|{\bf{ = }}\left| {{\bf{B A}}} \right|\) is not true.

Step by step solution

01

Definition

In mathematics, set \({\bf{A}}\) is a subset of a set \({\bf{B}}\) if all elements of \({\bf{A}}\) are also elements of \({\bf{B}}\); \({\bf{B}}\) is then a superset of \({\bf{A}}\). It is possible for \({\bf{A}}\) and \({\bf{B}}\) to be equal; if they are unequal, then \({\bf{A}}\) is a proper subset of \({\bf{B}}\).

02

Verifying \(\left| {{\bf{A B}}} \right|{\bf{ = }}\left| {{\bf{B A}}} \right|\) is true or not

It is not true that \(\left| {A B} \right|\) is always equal to \(|A| \bullet |B|\), since a string in \({\bf{AB}}\) may be formed in more than one way. After a little experimentation, it might come up with the following example to show that \(\left| {{\bf{A B}}} \right|\) need not equal \(\left| {{\bf{B A}}} \right|\) and that \(\left| {{\bf{A B}}} \right|\) need not equal. Let \({\bf{A = }}\left\{ {{\bf{0,00}}} \right\}\), and let \({\bf{B = }}\left\{ {{\bf{01,1}}} \right\}\). Then \({\bf{A B = }}\left\{ {{\bf{01,001,0001}}} \right\}\) (there are only \(3\) elements, not \({\bf{2 \times 2 = 4}}\), since \(001\) can be formed in two ways), whereas \({\bf{B A = }}\left\{ {{\bf{010,0100,10,100}}} \right\}\) has \(4\) element.

Hence, \(\left| {{\bf{A B}}} \right|{\bf{ = }}\left| {{\bf{B A}}} \right|\) is not true.

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

Express each of these sets using a regular expression.

  1. The set containing all strings with zero, one, or two bits
  2. The set of strings of two 0s, followed by zero or more 1s, and ending with a 0
  3. The set of strings with every 1 followed by two 0s
  4. The set of strings ending in 00 and not containing 11
  5. The set of strings containing an even number of 1s

Determine whether 1011 belongs to each of these regular sets.

  1. \({\bf{1}}0{\bf{*}}1{\bf{*}}\)
  2. \(0{\bf{*}}\left( {10 \cup 11} \right){\bf{*}}\)
  3. \(1\left( {01} \right){\bf{*1*}}\)
  4. \(1{\bf{*}}01\left( {0 \cup 1} \right)\)
  5. \(\left( {10} \right){\bf{*}}\left( {11} \right){\bf{*}}\)
  6. \(1\left( {00} \right){\bf{*}}\left( {{\bf{11}}} \right){\bf{*}}\)
  7. \(\left( {10} \right){\bf{*}}10{\bf{1}}1\)
  8. \(\left( {1 \cup 00} \right)\left( {01 \cup 0} \right)1{\bf{*}}\)

a) Explain what the productions are in a grammar if the Backusโ€“Naur form for productions is as follows:

\(\begin{array}{*{20}{l}}{{\bf{ < expression > :: = }}\left( {{\bf{ < expression > }}} \right){\bf{ }}\left| {{\bf{ < expression > + < expression > }}} \right|}\\\begin{array}{c}{\bf{\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;}}\,\,\,\,{\bf{ < expression > * < expression > |}}\\\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,{\bf{ < variable > }}\end{array}\\{\,\,\,\,\,\,\,\,\,{\bf{ < variable > :: = xly}}}\end{array}\)

b) Find a derivation tree for \(\left( {{\bf{x*y}}} \right){\bf{ + x}}\) in this grammar.

Draw the state diagrams for the finite-state machines with these state tables.

A palindrome is a string that reads the same backward as it does forward, that is, a string w, where \({\bf{w = }}{{\bf{w}}^{\bf{R}}}\), where \({{\bf{w}}^{\bf{R}}}\) is the reversal of the string w. Find a context-free grammar that generates the set of all palindromes over the alphabet {0, 1}.

See all solutions

Recommended explanations on Math Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free