Question

In: Computer Science

Given A = {great}, B = {grand, ε}, and C = {mother, father}. What is BC?...

Given A = {great}, B = {grand, ε}, and C = {mother, father}.

  1. What is BC?

  2. What is ABC?

  3. What is A*BC?

Solutions

Expert Solution

Here we have to concatenate each set with another set.

Note: Concatenating any string with ε gives the original string only.

i)

B={grand,ε} and C={mother,father}

Now BC={grandmother,grandfather,mother,father} Here BC is nothing but concatenating B with C.

so BC = {grandmother,grandfather,mother,father}

In above example we are taking each string of B and Concatenating with Each string of C.

ii)

ABC Value

First concatenate A with B and then Concatenate with C

AB={great}{grand,ε}={greatgrand,great}

Now Concatenate AB with C

ABC={greatgrand,great}{mother,father}={greatgrandmother,greatgrandfather,greatmother,greatfather}

so ABC={greadgrandmother,greatgrandfather,greatmother,greatfather}

iii)

A*BC

Here A* means Kleen Closure

So A* can be written as A^0 U A^1 U A^2...

so when we put 0 in place of * we will get A^0={ε} and then concatenate with BC

i.e ={ε}{BC}={ε}{grandmother,grandfather,mother,father}

Similarly if we put 1 in place of * we will get ABC i.e ={greatgrandmother,greatgrandfather,greatmother,greatfather}

If we put 2 in place of * then we will get A^2 nothing but AA={great}{great}={greatgreat}

and then concatenate with BC.

{greatgreat}BC={greatgreat}{grandmother,grandfather,mother,father}={greatgreatgrandmother,greatgreatgrandfather,greatgreatmother,greatgreatfather}

So A^2BC={greatgreatgrandmother,greatgreatgrandfather,greatgreatmother,greatgreatfather}

Note: if you have any queries please post a comment thanks a lot...always available to help you...


Related Solutions

For the relation R(A,B,C,D,E) with the following Functional Dependencies: A → B, A → C, BC...
For the relation R(A,B,C,D,E) with the following Functional Dependencies: A → B, A → C, BC → D, AC → E, CE → A, list all non-trivial FDs following from the above.    Generate all possible keys for R. Check whether R is in 3NF. If it is in 3NF, explain the criteria you used. If it is not in 3NF, convert it into 3NF, showing the new relations and their FDs.
A mother has blood type A, and a father has blood type B. Children produced by...
A mother has blood type A, and a father has blood type B. Children produced by these two people could have which of the following blood types? 1. Type O 2. All of the choices are correct. 3. Type AB 4. Type A
Sally is blood type AB positive and her mother was type A- and father type B+.  ...
Sally is blood type AB positive and her mother was type A- and father type B+.   Vikram is blood type B-, and his father was type B+ and mother type O -. A) What is Sally's genotype: B) What's Vikram's genotype: C) The genotypes and blood types (phenotypes) possible in their children.
(A) Let a,b,c∈Z. Prove that if gcd(a,b)=1 and a∣bc, then a∣c. (B) Let p ≥ 2....
(A) Let a,b,c∈Z. Prove that if gcd(a,b)=1 and a∣bc, then a∣c. (B) Let p ≥ 2. Prove that if 2p−1 is prime, then p must also be prime. (Abstract Algebra)
Simplify the grammar G. Does L(G) contain ε ? S -> A B C | B...
Simplify the grammar G. Does L(G) contain ε ? S -> A B C | B a B A -> a A | B a C | a a a B -> b B b | a | D C -> C A | A C D -> ε
Ions B and C to form the complex BC. If 35.0 mL of 1.00 M B...
Ions B and C to form the complex BC. If 35.0 mL of 1.00 M B is combined with 35.0 mL of 1.00 M C, 0.00500 mol of BC is formed. Determine the equilibrium constant fo this reaction.
If P(A)=0.8, P(B)=0.5, and P(C)=0.4, find P(A ∩ (Bc ∪ Cc )) if A, B, and...
If P(A)=0.8, P(B)=0.5, and P(C)=0.4, find P(A ∩ (Bc ∪ Cc )) if A, B, and C are independent.
Given triangle(ABC) with A-D-C, then BD < BA or BD < BC. Prove that the set...
Given triangle(ABC) with A-D-C, then BD < BA or BD < BC. Prove that the set consisting of a circle and its interior is a convex set.
1.      Which of the following is NOT an achieved status? a. Banker b. Student c. Father...
1.      Which of the following is NOT an achieved status? a. Banker b. Student c. Father d. Male e. Club President
1) Who is Zeus' mother and father in Hesiod's Theogony? 2) What does Kronos swallow instead...
1) Who is Zeus' mother and father in Hesiod's Theogony? 2) What does Kronos swallow instead of Zeus? That is, what object do they use to trick Kronos? 3) In 2-3 sentences, what does Prometheus do to anger Zeus in Hesiod's Theogony? 4) As best as you can tell, what is the familial relationship between Zeus and Prometheus? Like, what kind of relatives are they?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT