Reference no: EM13320710
1. State whether the following statements are true or not. You must give a BRIEF explanation or show a counter example to receive full credit.
(a) If a subset of a regular language is regular then all of its subsets are regular.
(b) (0111 + 1011 + 1101 + 1110)* is the regular expression for the set of all strings with 3n0 = n1 where n0 and n1 respectively denote the numbers of 0s and 1s in w.
(c) Let R1 = aba+ and R2 = ab+a be two regular expressions then R1 ∪ R2 = ab(a + b)*b.
(d) With pumping lemma, we can prove that L = {w : w = 1000} is a regular language.
2. The following table shows a non-associative operation closed under set A = {a, b, c, d} The left-to-right and right-to-left evaluation values of a string w, when interpreted as an expression, are represented as wlr and wrl, respectively. As an example if w = adb then wlr = (ad)b = ab = c and wrl = a(db) = ac = b.
(a) Give a DFA for the following language with the alphabet A, the first input to the DFA will be the left-most letter of the string:
L = {ω : ω ∈ A*, ωlr = d }
(b) Give an NFA with minimum number of states for the following language with the alphabet A, the first input to the NFA will be the left-most letter of the string:
L = {ω : ω ∈ A*, ωrl = d }
3. Give a regular expression for the set of all strings from f0, 1g , which are base 2 represen-tations of a number which is a multiple of 5. For example, the string 1111 which represents (1111)2 and equals 15, must be generated by the regular expression since it is a multiple of 5.
4. If L is a regular language prove that the following languages are also regular.
5. Prove or disprove that the following languages are regular.
A company is evaluating the impact of a wellness program
: 1. A company is evaluating the impact of a wellness program offered on-site as a means of reducing employee sick days. A total of 8 employees agree to participate in the evaluation which lasts 12 weeks.
|
Calaveras tire exchanged machinery for two pickup trucks
: Calaveras Tire exchanged machinery for two pickup trucks. The book value and fair value of the machinery were $40,000 (original cost of $95,000 less accumulated depreciation of $55,000) and $27,000, respectively.
|
How high must a doorway
: Heights of swedish men follow a normal distribution with mean 72 in and standard deviation of 5 in. How high must a doorway be so that 90% of swedish men can go through without having to bend?
|
What was the gain or loss on the sale of the equipment
: Lawler Clothing sold manufacturing equipment for $34,000. Lawler originally purchased the equipment for $98,000, and depreciation through the date of sale totaled $80,000.
|
Give an nfa with minimum number of states
: Give an NFA with minimum number of states for the following language with the alphabet A, the first input to the NFA will be the left-most letter of the string
|
Prepare the journal entry to record the budget
: A village ordered supplies for its Fire Department at an estimated cost of $16,700. The supplies were received with an invoice for $16,800.
|
Determine the change in the length of the solenoid
: A 6.30 x 10 -5 H solenoid is constructed by wrapping 54 turns of wire around a cylinder with a cross-sectional area of 6.4 x 10-4 m2. Determine the change in the length of the solenoid
|
Find the total sound intensity
: A man stands at the midpoint between two speakers that are broadcasting an amplified static hiss uniformly in all directions. Find the total sound intensity that the man hears when he is at his initial position halfway between the speakers
|
Budgetary journal entry at the beginning of fiscal
: Actual revenues are equal to estimated revenues, and actual expenditures are $7,000 less than appropriations.
|