2. (10 points) Consider the following computational problems:
EQDF A = {hA, Bi | A and B are DFAs and L(A) = L(B)}
SUBDF A = {hA, Bi | A and B are DFAs and L(A) ⊆ L(B)}
DISJDF A = {hA, Bi | A and B are DFAs and L(A) ∩ L(B) = ∅}.
Prove that SUBDF A and DISJDF A are each Turing-decidable.
You may (and should) use high-level descriptions of any Turing machines you define. Make sure to provide both a machine definition and a proof of correctness.
Solution for is Turing decidable or not.
Given
Let and be two sets. Then
Thus based on the above Idea:
Define TM by : = "On Input where 's
Solution (b) To prove is Turing
decidable.
From Demorgan's law we know the fact that if and are two sets
Then = . And we also know that union and complement of DFA are decidable thus the intersection is also decidable.
Based on Above Idea:
Define TM by : = "On Input where 's
Proof of correctness is just to tell that M1 and M2 is decider and the L(M1) and L(M2) are indeed equivalent to SUB_DFA and DISJ_DFA.
2. (10 points) Consider the following computational problems: EQDF A = {hA, Bi | A and...
For the following problems (except problem 8), state whether the problem is decidable or undecidable. If you claim the problem is decidable, then give a high-level, English description of an algorithm to solve the problem. If you claim the problem is undecidable, then describe a proof- by-reduction to verify your claim. If your proof involves some kind of transformation of M into M', as was done for the BlankTape problem, then provide a high -level, English description of your transformation....
please answer a,b, and c Consider the following Turing Machine. M = “On input hA,Bi where A and B are DFAs: 1. Iterate through strings in Σ∗ in shortlex order; where Σ represents the common symbols of their input alphabets. For each string iterated, simulate both A and B on it. 2. If a string is ever encountered that both A and B accept, then accept.” (a) (2 points) Give a description, in English, of the language that M recognizes....
State whether the problem is decidable or undecidable. If you claim the problem is decidable, then give a high-level, English description of an algorithm to solve the problem. If you claim the problem is undecidable, then describe a proof-by-reduction to verify your claim. If your proof involves some kind of transformation of M into M’ , then provide a high-level, English description of your transformation. Be sure to specify precisely for each “box” in your proof, what are the inputs...
3. (12 points) Consider the following sum: n Sn = {(i + 1)(i +2) i=0 (a) Use properties of summations to find a closed form expression for Sn. Simplify your answer into a polynomial with rational coefficients. Show your work, and clearly indicate your final answer. (b) Use weak induction to prove that your closed form works for every integer n > 0. Make sure you include all three parts, and label them appropriately!
Question 2. Consider the following 8 bundles of goods x and y: A = (8,4) B = (5,6) C = (5,9) D = (10,3) E =(1,4) F =(6,5) G=(2,8) H =(7,8) (a) Come up with an example of a utility function that will produce the following order of preference for the bundles, where H is most preferred, A and G are equally preferred, and E is least preferred. H , C , B , F , A = G ,...
Real analysis 10 11 12 13 please (r 2 4.1 Limit of Function 129 se f: E → R, p is a limit point of E, and limf(x)-L. Prove that lim)ILI. h If, in addition, )o for all x E E, prove that lim b. Prove that lim (f(x))"-L" for each n E N. ethe limit theorems, examples, and previous exercises to find each of the following limits. State which theo- rems, examples, or exercises are used in each case....
Part 2: Money Q5. Consider the Balance sheets of Bank A and Bank B: (10 points) Assets Bank A Liabilities and Owners' Equity Reserves 200 Deposits 1000 Loans 1000 Debt (bond issued by Bank A) 500 Stocks 800 Capital (Owner's Equity) 500 Assets Bank B Liabilities and Owners' Equity Reserves 400 Deposits 2000 Loans 1600 Debt (bond issued by Bank B) 400 Stocks 1000 Capital (Owner's Equity) 600 i. What is the Reserve-Deposit Ratio (rr) for bank A, What is...
2. Consider the following set of complex 2 x 2 matrices where i = -1: H = a + bi -c+dil Ic+dia-bi Put B = {1, i, j, k} where = = {[ctdie met di]|1,3,c,dex} 1-[ ), : = [=]. ; = [i -:], « =(: :] . (a) Show that H is a subspace of the real vector space of 2 x 2 matrices with entries from C, that is, show H is closed under matrix addition and multi-...
specifically on finite i pmu r the number of objøcts or ways. Leave your answers in fornsiala form, such as C(3, 2) nporkan?(2) Are repeats poasib Two points each imal digits will have at least one xpeated digin? I. This is the oounting problem Al ancmher so ask yourelr (1) ls onder ipo n How many strings of four bexadeci ) A Compuir Science indtructor has a stack of blue can this i For parts c, d. and e, suppose...
1. Explain the function/purpose of the following sequence of program statements by expressing the postcondition and then prove that the program is correct using the axiomatic verification method. Precondition: {x = A and y = B} t=x x=y y=t Postcondition:________________ 2. Prove that the following grammar is ambiguous. <stmt> -> <assign> | <if-stmt> <assign> -> <id> := <expr> <if-stmt> -> if <bool> then <stmt> | if <bool> then <stmt> else <stmt> Modify the grammar above to make it unambiguous: 3....