

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


a) 10111101 = 10001111 b) yes yes yes no no The n-bit numbers are all x in Z^+ 2^(n-1) <= x < 2^n The product of an m-bit number x and an n-bit number y is therefore xy with 2^(m+n-2) <= x*y < 2^(m+n). So The product of an m-bit by n-bit number, for m, n >= 1, is either m+n or m+n-1 bits.
YES: (1+x)^2 + y^4(1+z^6) ย 3 = 0 x = 0 y = 1 z = 1
Don't know! However, if that's your complete answer, you won't get much credit. Let's see what's going on: Part 1: Note: to be in NP, the length of the proof (NP ย proof) must be upper bounded by a fixed polynomial of the input length (length of f). [i.e. the time to compute f(x_1, x_k) for given values of x_1, , x_k in {0, 1} must be <= poly(length of f(x_1, , x_k)) for some fixed polynomial.] Part 2: If the definition of multivariate polynomial did not permit any exponentiation at all (so that x^3 would have to be written xxx), then the answer would be YES. That's because + and * cannot increase the length of an expression: an m-bit + n-bit number has length <= 1 + MAX{m, n} An m-bit * n-bit number has length <= m+n Part 3: If the definition of multivariate poly did permit raising to a unary power, but did not permit nesting powers (such as ((2^11)^11)^11 = ((2^2)^2)^2 = 2^(222) = 2^(2^3)), then the answer would be YES. That's because the length of an (m-bit binary number)^((n-m)-bit unary power) ร is (m +
Don't know: Same reasoning as problem 3, though the final answer, when known, might be different.
CS 172, Midterm #2 Solutions, Spring 1999
CS 172, Spring 1999 Midterm #2 Solutions Professor Manuel Blum 1
YES. Transform by mapping. 3SAT ร ZMP T ร 0 F ร 1 + (OR) ร * * (AND) ร + X ร x^ Conj(X) ร (1-x)^2 Ex: (A + B + conj(C))(B + C)(conj(B)) ร a^2 b^2 (1-c)^2 + b^2 c^2 + (1-b)^2 The map is poly-time
YES. Follows from part 5. Transform ZMP with degrees in unary ร ZMP with degrees in ginary Ex: x^(1111111111111) ร x^1101 In general, the map takes a multivariate poly expression into a shorter (or at least not longer) expression. It's poly-time. It maps YES ร YES NO ร NO
CS 172, Midterm #2 Solutions, Spring 1999
Problem #5 2