Given information:
.
Definition:
Claim:
.
Proof: To prove this, it is sufficient to come up with a certificate for this language, and a polynomial verifier. Any word in the language should have a certificate, and none for words not in the language.
This definition of the language already suggests the following
as the certificate:
.
The verifier does the following: on input
, and certificate
, it checks the length of them are equal and that y has exactly as
many ones as half the length of x. This takes only linear time.
Then it calculates
. This takes linear time as well.
Finally, given that
, there is a polynomial time machine M which accepts exactly the
words in L. The verifier runs M on
and accepts if and only if it is accepted.
It is clear that the verifier accepts if and only if such a certificate exists, and the certificate exists only for the words in the language. This completes the proof.
Comment in case of any doubts.
6. (10 pts) Is L regular? Either prove that it is not regular using pumping lemma, or describe an RE for it. The alphabet of the language is 10,1, +,-) L = { x = y + z | x, y, z are binary integers, and x is the sum of y and z }. For example, strings 1000 = 101 + 11, 0101 = 010 + 11, and 101 = 101 + 0 are in the language, but strings...
Let L = {x|x = yz, y ∈ {a} ∗ ,z ∈ {Λ,b,bb}} Let L1 = {x|x ∈ L,|x| ≤ 4}. List all the strings in L1. List all the strings of the following language: L = {x|x ∈ {0,1} ∗ and |x| = 4 and x contains 01 as substring}
Let L= {x[x = yz,y € {a}",z € {A, b, bb}} Let L1 = {x|x E L,[x] <4}. List all the strings in Lj.
Let p E [0,1] with pメ, and let (Xn)n=o b l e the Markov chain on with initia [0,1] given by distribution δο and transition matrix 11: Z Z ify=x-1 p 0 otherwise. Use the strong law of large numbers to show that each state is transient. Hint: consider another Markov chain with additional structure but with the same distribution and transition matrix
Let p E [0,1] with pメ, and let (Xn)n=o b l e the Markov chain on with...
1. Let £ = {0,1} and consider the language L of all binary strings of odd length with a 0 in the middle. Give a Turing machine that decide L.
1. (5 pts.) TRue or FALse: (a) Let R denote a plane region, and (u,u) = (u(x,y), u(x,y)) be a different set of l (b) Let R denote a plane region, and (u, v) - (u(x, y), v(x, y)) be a different set of coordinates for the Cartesian plane. Then for any function F(u, v F(u, u)dudu- F(u(x,y),o(x,y))dxdy coordinates for the Cartesian plane. Then (c) Let R denote a square of sidelength 2 defined by the inequalities |x-1, lul (3y,...
1. Let f(x, y, z) = (x XOR y) AND z and g(x, y, z) = (x AND y) XOR (y AND z) a) Determine if f = g is true using a truth table.. b) Give the CPOS of g. c) Give the CSOP of f.
Consider two random variables, X and Y. Let E(X) and E(Y) denote the population means of X and Y respectively. Further, let Var(X) and Var(Y) denote the population variances of X and Y. Consider another random variable that is a linear combination of X and Y Z- 3X- Y What is the population variance of Z? Assume that X and Y are independent, which is to say that their covariance is zero.
1. Suppose that E(X) E(Y) E(Z) 2 Y and Z are independent, Cov(X, Y) V(X) V(Z) 4, V(Y) = 3 Let U X 3Y +Z and W = 2X + Y + Z 1, and Cov(X, Z) = -1 Compute E(U) and V (U) b. Compute Cov(U, W). а.
Let Σ = {0, 1). (a) Give a recursive definition of Σ., the set of strings from the alphabet Σ. (b) Prove that for every n E N there are 2" strings of length n in '. (c) Give a recursive definition of I(s), the length of a string s E Σ For a bitstring s, let O(s) and I(s) be number of zeroes and ones, respectively, that occur in s. So for example if s = 01001, then 0(s)...