1. (50 point) For i=1, 2, 3, 4 and 5, design NFAs Ni , such that L(Ni) = Bi , where:
(a) B1 = {w | w has an even number of 00 s, or, contains exactly two 10 s}.
(b) B2 = {w | every odd position of w is 1}. Note: In this question, we use the following convention: the position of a string w starts with position 0. For example, If s is the string 010, then the symbol at position 0 (resp. 1, 2) of s is 0 (resp. 1, 0) respectively. Hence, s will be in B2. In addition, we will consider the empty string e 6∈ B2.
(c) B3 = {w | all strings except the empty string and the string 11}.
(d) B4 = {0} with two states.
(e) B5 = 0 ∗1 ∗1 + with three states.
Answer all questions. Unless otherwise stated, all the DFAs and NFAs in this homework use 2- 10,1j as the alphabet. 1. (50 point) For i-1,2 and 3, design NFAs Ni, such that L(N) - B5, where: (a) Bi-{w|w has an even number of O's, or, contains exactly two 1's) (b) ) B2- w every odd position of w is 1 (c) B3 - [w| all strings except the empty string and the string 11) (d) B4- [0j with two states....
Just answer the second problem the photo is my answer for
first one and need to use in the second problem
all questions. Unless otherwise stated, all the DFAs and 1 /2 1 this homework use Σ-(0, 1 } as the alphabet. (50 point) For i=1, 2, 3, 4 and 5, design NFAs Ni, such that L(M) = Bi, where 1, (a) Bi -[w w has an even number of O's, or, contains exactly two 1's). (b) B2-[w every odd...
B А 1 Next Dividend (D.) 2 Dividend Growth Rate 3 Stock Price 4 Flotation Cost 5 Beta 6 Risk-free Rate 7 Expected Market Return 8 Cost of New Common Equity 2.25 4.00% $35.00 6.00% 1.15 2.50% 9.00% ? What is the correct formula for B7 to find the cost of new common equity using the constant growth dividend discount model? =B1/B3*(1-B4))+B2 =B1/(B3"(1-B4))+B2 B5+B4 B6 -B1/B3+B2
1)
2) Give formal descriptions (5-tuples) for the DFAs shown in
figure below:
3) Give the state diagrams of DFAs recognizing the following
languages over ? = {0, 1}:
a) LÆ
b) L?
c) {e, 1001}
d) {e, 101, 1001}
e) {w : w has prefix 10}
f) {w : w does not contain the substring
011}
4) Give the state diagrams of DFAs recognizing the following
languages over ? = {0, 1}:
a) {w: |w| ? 5}
b) {w...
solution of question d
(4 points) Consider the basis of R5 given by with b2 (2,-1,-5,-4,7), b3-(3, 2,-7,-5,9) b4 2,1,4,4,-5) bs (-1,0,1,2,0) The MATLAB code to produce the basis vectors is given by b1 11,0-2-2.3], b2 -12-1.-5-4,7T, b3 13-2-7-5,91, b4 [-2,14.4-5T, b5 1-1,0,1,20 Let S denote the standard basis for R a Find the transition matrix P P,s PB,s b. Use the previous answer to calculate the coordinate matrix of the vector z ( 1,5, 4, 3, 3) with respect...
Define a substitution box, So as following table 1 0 3 2 3 2 1 0 0 2 1 3 1 1 3 2 and a substitution scheme that if we denote a 4 bit number as “b1 b2 b3 b4”, the (b1 b4) forms a 2 bit binary number that specifies a row of the above matrix and the (b2 b3) forms another 2 bit binary number that specifies a column of the matrix. The row and column lead...
Hello, i want to ask you Inventory cost
=3.6(B1+B2)/2+3.75(B2+B3)/2+3.98(B3+B4)/2+4.28(B4+B5)/2+4.2(B5+B6)/2+3.9(B6+B7)/2,
So, how to compute 3.6, 3.75, 3.98, 4.28, 4.2? And why 3.6X(B1+B2)
and divide by 2? Also, i want to ask the objective function for
this problem why is minimize, not maximize? Thank you for your
help!
The Upton Corporation manufactures heavy-duty air compressors for the home and light industrial markets. Upton is presently trying to plan its production and inventory levels for the next six months. Because of seasonal fluctuations...
Question 1: Design a DFA with at most 5 states for the language L1 = {w ∈ {0, 1}∗ | w contains at most one 1 and |w| is odd}. Provide a state diagram for your DFA. Approaching the Solution --since we haven’t really practiced this type of assignment (i.e. had to define our machine based on only having the language given; not the formal 5 tuples), I am providing the steps for how to work through this; you are...
1. Given a set of numbers: A = {1, 3, 5, 2, 8, 7, 9, 4 }. Add each digit of your N-Number (e.g. N0 0 3 2 2 0 1 8) to each element of A separately to get your own final array B. ( e.g. B={1,3,8,4,10,7,10,12} = {B1,B2,B3,B4,B5,B6,B7,B8}. ) a) Your set B = ? b) Use merge-sort to sort the array B. Show each step. c) How many “comparisons” for each algorithm above? 2. Use binary-search for...
A function is defined over (0,6) by 0 <and I <3 f(1) = - { 3<; and <6 We then extend it to an odd periodic function of period 12 and its graph is displayed below. N y 1 0 -10 5 5 10 15 X The function may be approximated by the Fourier series f (t) = a0 + 1 (an cos (021 ) + bn sin ( 122 )), where L is the half-period of the function. Use...