Comp Sci Polynomial products with term of even degree x being non-zero is in NP

  • Thread starter Thread starter CGandC
  • Start date Start date
Click For Summary
The discussion focuses on constructing a polynomial verifier for a specific input format related to polynomial products of even degree. The verifier should accept if the sum of certain coefficients equals twice a given term, with conditions ensuring non-zero coefficients for selected terms. Participants explore the polynomial multiplication formula and its application to multiple polynomial products, emphasizing the need for specific conditions on the coefficients involved. The conversation also touches on the complexity of notation when dealing with more than two polynomial factors. Overall, the thread seeks clarity on the construction of a correct verifier while engaging with polynomial algebra concepts.
CGandC
Messages
326
Reaction score
34
Homework Statement
Problem: Define language ##L## s.t. a sequence of natural numbers ( zero included ) ##(t,a_1,b_1,k_1, \ldots , a_m ,b_m ,k_m ) ## is in ##L## if and only if the coefficient of ## x^{2t} ## in the expansion of ## p(x)=\left(a_1+b_1 x^{k_1}\right)\left(a_2+b_2 x^{k_2}\right) \cdots\left(a_m+b_m x^{k_m}\right) ## is non-zero. ( in other words, ## p(x)=\sum_{i=0}^d c_i x^i ## for integer coefficients ## d \geq 2 t, c_0, \ldots, c_d ##, and ## c_{2 t} \neq 0 ##).

Prove ## L \in NP ##.
Relevant Equations
Every language in NP has polynomial verifier and vice-versa.
Attempt: We'll define a polynomial verifier such that for input ## \left\langle\left(t, a_1, b_1, k_1, \ldots, a_m, b_m, k_m\right), I\right\rangle ## it accepts if and only if ## I ## is an encoding of a set ## I \subseteq \{ 1 , \ldots , m \} ## such that ## \sum_{i \in I} k_i=2 t ## [ I don't know how to continue from here ]

How do I continue the verifier construction? I don't see what conditions ( which involve the coefficients ## b_i , a_i , i\in I## ) one can check on the witness ## I ## in order to create a correct verifier, any ideas?
 
Physics news on Phys.org
Define M = \{1, \dots, m\} for convenience. Do we not have <br /> \prod_{i \in M}(a_i + b_ix^{k_i}) = \sum_{I \in 2^{M}} \left(\prod_{i\in M \setminus I} a_i\right)\left( \prod_{i \in I}b_i\right) x^{\sum_{i \in I} k_i } by taking the a_i term from bracket i if i \in M \setminus I and the b_ix^{k_i} term if i \in I?
 
pasmith said:
Define M = \{1, \dots, m\} for convenience. Do we not have <br /> \prod_{i \in M}(a_i + b_ix^{k_i}) = \sum_{I \in 2^{M}} \left(\prod_{i\in M \setminus I} a_i\right)\left( \prod_{i \in I}b_i\right) x^{\sum_{i \in I} k_i } by taking the a_i term from bracket i if i \in M \setminus I and the b_ix^{k_i} term if i \in I?
So we must have ## \forall i\in I. b_i \neq 0 ## and ## \forall i \notin I. a_i \neq 0 ## , thanks for your help!!
 
The notation for more than two polynomial factors is less straightforward, but the product of n polynomials of degrees n_i \geq 0 can be written as \begin{split}<br /> P(x) &amp;= \prod_{i=1}^n \left(\sum_{j=0}^{n_i} a_{ij}x^{j}\right) \\<br /> &amp;= \left(\sum_{j_1=0}^{n_1} a_{1j_1}x^{j_1}\right)<br /> \cdots \left( \sum_{j_n=0}^{n_n} a_{nj_n} x^{j_n}\right) \\<br /> &amp;= \sum_{J \in S} a_{1j_1} \cdots a_{nj_n} x^{j_1+\cdots + j_n}<br /> \end{split} on expanding the product, where \begin{split}<br /> J &amp;= (j_1, j_2, \dots, j_n) \\ &amp;\in <br /> \{0, 1, \dots, n_1 \} \times \{0, 1, \dots n_2\} \times \dots \times \{0, 1, \dots, n_n\}<br /> = S \subset \{0, 1, \dots, \max n_i\}^n. \end{split} The coefficient of x^k is then found by restricting the sum to <br /> S_k = \{ J \in S: j_1 + \dots + j_n = k \} \subset S.
 
Thank you very much, very good info!
 
Thread 'Why wasn’t gravity included in the potential energy for this problem?'
I’m looking at the attached vibration problem. The solution in the manual includes the spring potential energy but does NOT include the gravitational potential energy of the hanging mass. Can someone explain why gravitational potential energy is not included when deriving the equation of motion? I tried asking ChatGPT but kept going in circles and couldn't figure out. Thanks!

Similar threads

  • · Replies 71 ·
3
Replies
71
Views
13K
  • · Replies 175 ·
6
Replies
175
Views
25K
  • · Replies 42 ·
2
Replies
42
Views
10K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 48 ·
2
Replies
48
Views
11K
  • · Replies 16 ·
Replies
16
Views
6K
  • · Replies 28 ·
Replies
28
Views
7K