

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The cs 172 midterm exam 2 from spring 1999, focusing on multivariate polynomials and their complexity. The exam includes multiple-choice questions and a problem-solving section. Students are required to provide reasons for their answers and are permitted to use calculators. The exam covers topics such as the length of the product of binary numbers, the computational decision problem zmp, and the complexity of zmp in np for different degree representations.
Typology: Exams
1 / 3
This page cannot be seen from the preview
Don't miss anything!


(1 pt) a) The product of binary numbers 1011 and 1101 is 1011* 1101 = _______________________________________.
(10 pts: 1 pt each; double this if all are correct) b) In spaces to the right, write YES or NO (or "I think so" or "I think not" or "I don't know"). The length (in bits) of the product of an m-bit number and an n-bit number, for positive integers m and n, is:
Define the Computational Decision Problem ZMP as follows:
DECISION PROBLEM ZMP (Zeroes of a Multivariate Polynomial) INSTANCE:
QUESTION: Does the given polynomial have a root over {0,1}?
EXAMPLE: The same f as it appears with unary and binary degress Unary degrees: f(x,y,z) = (1+x)^11 + (y^1111)(1+z^111111) - 3 Binary degrees: f(x,y,z) = (1+x)^2 + (y^4)(1+z^6)-
CS 172, Spring 1999 Midterm Exam 2 Manual Blum 1
(5 pts) Does the above f(x,y,z) have a root in {0,1}? Note: the answer to this question is independent of whether the degrees are given in unary or binary.)
If not, why not?
If yes, give a root: x=__________ y=__________ z=__________
(Careful! In our problem, the above variables are only permitted to be 0 or 1!)
*DEFINITION: A MULTIVARIATE POLYNOMIAL f(x1,x2,...,xk) is defined as follows:
1.Any integer is a polynomial. Ex: 37 2.Any variable from a given finite set of variables, eg {x1, ..., xk, x, y, z} is a polynomial. Ex: y A sum or product of 2 polynomials, placed inside parentheses, is a polynoial. Ex:(x+y), and (37*x) (or its equivalent (37x))
4.A polynomial placed inside parentheses and raised to an INTEGER power, is a polynomial.
Parentheses may be left out if the meaning of the polynomial remains clearly unchanged. Ex: f(x,y) = ((37*x)^3 + x + 25y)^
(20 pts) Is ZMP in NP when degrees are in unary?
(20 pts) Is ZMP in NP when degrees are in binary?
Problem #2 2