Question

In: Computer Science

(a)  Let S = {a, b, ab, aba}. How many different factorizations are there of (ab)11 ? It is not enough to...

(a)  Let S = {abababa}. How many different factorizations are there of (ab)11 ? It is not enough to give me a number. You need to prove (i.e., justify or explain very carefully) that your number is correct. 

This is for an automated languages course

Solutions

Expert Solution

Solutions for the problem is provided below, please comment if any doubts:

Answer: 22

Explanation:

  • (ab)11 = ababababababababababab
  • S= {a, b, ab, aba}
  • The number of ways the strings of S can be used to generate (ab)11 is the number of factorizations.
  • We need to check every possibility using the four strings in S.
  • 1: There is a possibility of making (ab)11 by using only “a” and “b” 11 times each.
  • 1: With only using eleven “ab” there is a possibility.
  • Now take the combination of the strings:
  • 10: Using “ab”, “a”, and “b”.
    • 10 “ab” and one “a” and “b”.
    • 9 “ab” and rest “a” and “b”.
    • Like 10 combinations;
  • 5: Using “aba”, “b” and “ab”.
    • Five “aba”, five “b” and an “ab” will constitute (ab)11.
    • Four “aba”, four “b” and three “ab” will give (ab)11.
    • Three “aba”, three “b” and five “ab”.
    • Two and one “aba” combination is also there.
  • 5: Using “aba”,“a” and “b”.
    • Five “aba”, six “b” and an “a” will constitute (ab)11.
    • Four “aba”, seven “b” and three “a” will give (ab)11.
    • Three, Two and one “aba”, “a” and “b” combination is also there.
  • Now total different factorizations are: 10+5+5+1+1=22.

Related Solutions

1. Remove left recursions if any A -> Aab | abA | ab B -> bb...
1. Remove left recursions if any A -> Aab | abA | ab B -> bb | Bb | bB
In 150- 200 words, describe different single subject case designs a. Describe AB, ABA, ABAB, multiple...
In 150- 200 words, describe different single subject case designs a. Describe AB, ABA, ABAB, multiple baseline, and alternating treatments design b. Give an example of how you could use this design c. Pick two designs to compare. Why would you choose one design over the other?
Let G be a group, show that: |a^{-1}ba| = |aba^{-1}| = a for all a,b in...
Let G be a group, show that: |a^{-1}ba| = |aba^{-1}| = a for all a,b in G.
Let R=R+. Define: a+b = ab ; a*b = a^(lnb) 1. Is (R+, +, *) a...
Let R=R+. Define: a+b = ab ; a*b = a^(lnb) 1. Is (R+, +, *) a ring? 2. If so is it commutative? 3. Does it have an identity?
± Common-Ion Effect on Solubility for a Metal Hydroxide Consider the dissolution of AB(s): AB(s)⇌A+(aq)+B−(aq) Le...
± Common-Ion Effect on Solubility for a Metal Hydroxide Consider the dissolution of AB(s): AB(s)⇌A+(aq)+B−(aq) Le Châtelier's principle tells us that an increase in either [A+] or [B−] will shift this equilibrium to the left, reducing the solubility of AB. In other words, AB is more soluble in pure water than in a solution that already contains A+ or B− ions. This is an example of the common-ion effect. The generic metal hydroxide M(OH)2 has Ksp = 4.85×10−12. (NOTE: In...
Consider arranging the letters of FABULOUS. (a). How many different arrangements are there? (b). How many...
Consider arranging the letters of FABULOUS. (a). How many different arrangements are there? (b). How many different arrangements have the A appearing anywhere before the S (such as in FABULOUS)? (c). How many different arrangements have the first U appearing anywhere before the S (such as in FABULOUS)? (d). How many different arrangements have all four vowels appear consecutively (such as FAUOUBLS)? I am stuck with b , c and d
Let V = { S, A, B, a, b, λ} and T = { a, b...
Let V = { S, A, B, a, b, λ} and T = { a, b }, Find the languages generated by the grammar G = ( V, T, S, P } when the set of productions consists of: S → AB, A → aba, B → bab. S → AB, S → bA, A → bb, B → aa. S → AB, S → AA, A → Ab, A → a, B → b. S → A, S →...
Let U = {A ∈ Mat(2; ℚ) : AB = BA for all B ∈ Mat(2;...
Let U = {A ∈ Mat(2; ℚ) : AB = BA for all B ∈ Mat(2; ℚ)}. (i) Show that  U is a subspace of Mat(2; ℚ). (ii) Show that E ∈ Mat(2; ℚ) is a basis of U. (E: identity matrix) (iii) Find the complement for U
A: 56, B: 11, AB: 8, O: 25 . Draw Punnett Square: Assume the population is...
A: 56, B: 11, AB: 8, O: 25 . Draw Punnett Square: Assume the population is in Hardy-Weinberg equilibrium Calculate the allele frequencies:   p =       q =        r = Algebraic equation    Numerical freq. Expected freq of   A: B: AB: O:
A)Let S = {1,2,3,...,18,19,20} be the universal set. Let sets A and B be subsets of...
A)Let S = {1,2,3,...,18,19,20} be the universal set. Let sets A and B be subsets of S, where: Set A={3,4,9,10,11,13,18}A={3,4,9,10,11,13,18} Set B={1,2,4,6,7,10,11,12,15,16,18}B={1,2,4,6,7,10,11,12,15,16,18} LIST the elements in Set A and Set B: {  } LIST the elements in Set A or Set B: {  } B)A ball is drawn randomly from a jar that contains 4 red balls, 5 white balls, and 9 yellow balls. Find the probability of the given event. Write your answers as reduced fractions or whole numbers. (a) PP(A...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT