Question

a) List all the languages whose Kleene-star is finite. b) Provide examples of two infinite languages...

a) List all the languages whose Kleene-star is finite.
b) Provide examples of two infinite languages X and Y , and a finite language Z such that X ∩ Y is finite, and XZ is also finite. Explain your answer.

Homework Answers

Answer #1

(a) The empty language ∅ and the null language {ε} which contains blank string are the only two languages with finite Kleene-star or Kleene closure.
(b) Let X = {a, aa, aaa, aaaa, ....} = a*, Y = {a, b, bb, bbb, bbbb, bbbbb, ....} = (a+b)* and Z is an empty language ∅.
Then, although X and Y are infinite languages, there intersection {a} is finite as there is a finite number of strings common to X and Y.
X is an infinite language but Z is a finite language. However, XZ is the empty string ∅ which is also finite. This is because concatenation of all strings of X with all strings of Z provides no string as there is no string in Z.

Hope this helps.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Provide evidence to argue that chimpanzees (or dogs or bees or birds or dolphins….) can acquire...
Provide evidence to argue that chimpanzees (or dogs or bees or birds or dolphins….) can acquire SOME aspects of human languages, but not all. Be sure to define “language” in your answer and to specify what aspects of language you are focusing on. Also state clearly WHICH aspects you think they can acquire and why, and which aspects they cannot acquire – and why not. The clearer and more detailed your examples and claims, the better.
In Python: Sublist of list A is defined as a list whose elements are all from...
In Python: Sublist of list A is defined as a list whose elements are all from list A. For example, suppose list A = [0, 1, 2, 3, 4, 5, 6], its has many sublists and one of them is [0, 1, 3] because elements 0, 1 and 3 are all contained in list A. Define a function named returnComplement that accepts two integer lists as the parameter (one of the list is the sublist of the other). Suppose names...
a) Why would a company want to use non-financial measures of quality? b) List two examples...
a) Why would a company want to use non-financial measures of quality? b) List two examples of non-financial measures of quality in the customer, internal business process, and learning and growth perspectives (2 from each perspective, not 2 total). As part of your answer, be sure to explain how each example relates to quality.
Provide one or two examples for each of the following: (a) successful first movers; (b) successful...
Provide one or two examples for each of the following: (a) successful first movers; (b) successful early followers; and (c) successful late entrants. Which facts or historical events support you chosen examples? Provide one or two examples for each of the following: (a) failed first movers; (b) failed early followers; and (c) failed late entrants. Which facts or historical events support you chosen examples? Which differences between successful and failed firms caught your attention? Why?
Let A be a nonempty set and let P(x) and Q(x) be open statements. Consider the...
Let A be a nonempty set and let P(x) and Q(x) be open statements. Consider the two statements (i) ∀x ∈ A, [P(x)∨Q(x)] and (ii) [∀x ∈ A, P(x)]∨[∀x ∈ A, Q(x)]. Argue whether (i) and (ii) are (logically) equivalent or not. (Can you explain your answer mathematically and by giving examples in plain language ? In the latter, for example, A = {all the CU students}, P(x) : x has last name starting with a, b, ..., or h,...
Please clearly answer and explain all parts of the question and provide examples so I can...
Please clearly answer and explain all parts of the question and provide examples so I can understand. Thank you so much!! Would you describe the Marshall-Lerner conditions/Elasticities Approach and the Absorption Approach to the Current Account as competing models, or complements? Briefly discuss the relationship and contradictions between the two models.
8) Given f(x,y)= x^3 + y^3 + 9xy + 5. ( Show all work please) a)...
8) Given f(x,y)= x^3 + y^3 + 9xy + 5. ( Show all work please) a) Find all the critical points. b) Give all the local maxima, minima and saddle points. c) Are the local extrema also global extrema? Explain. 9) You are standing at the point (1,1,3) on the hill whose equation is given by z=5y-x^2-y^2 (assume x,y,a are measured in meters) a) in what direction (relative to the horizontal plane) should you go to have steepest ascent? b)...
Suppose you are climbing a hill whose shape is given by the equation z = 900...
Suppose you are climbing a hill whose shape is given by the equation z = 900 − 0.005x2 − 0.01y2, where x, y, and z are measured in meters, and you are standing at a point with coordinates (120, 80, 764). The positive x-axis points east and the positive y-axis points north. (a) If you walk due south, will you start to ascend or descend? ascenddescend     At what rate? vertical meters per horizontal meter (b) If you walk northwest, will...
1.List three main factors which affect melting point of pure sample : B) select two factor...
1.List three main factors which affect melting point of pure sample : B) select two factor and explain your answer
Respond to this two part question that has different data for each: A) A cross is...
Respond to this two part question that has different data for each: A) A cross is made between an Hfr strain that is StrSx+y+z+ in genotype and an F- strain that is StrRx-y-z- in genotype. Interrupted-mating studies show that z+ enters the recipient strain last, and that the Str locus is very far away from y+, so it never enters the recipient strain. The y+ recombinants are then tested for the presence of the x+ and z+ alleles. The following...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT