Polynomial time algorithm - first order query, Mathematics

Assignment Help:

For queries Q1 and Q2, we say Q1 is contained in Q2, denoted Q1 ⊆ Q2, iff Q1 (D) ⊆ Q2(D) for every database D.

  • The container problem for a fixed Query Q0 is the following decision problem: Given a query Q, decide whether Q0 ⊆ Q.
  • The containee problem for a fixed query Q0 is the following decision problem: Given a query Q, decide whether Q ⊆ Q0.

Formally prove or disprove the following statements:

(a) For every conjunctive query Q0, there is a polynomial-time algorithm to decide the container problem for Q0 and for given conjunctive queries Q.

(b) For every conjunctive query Q0, there is a polynomial-time algorithm to decide the container problem for Q0 and for given conjunctive queries Q that can be obtained from Q0 by adding some atoms.

(c) For every conjunctive query Q0, there is a polynomial-time algorithm to decide the containee problem for Q0 and for given conjunctive queries Q.

(d) For every first-order Query Q0, there is an algorithm to decide the containee problem for Q0 and for given first-order queries Q. To prove a statement, sketch an algorithm, along with an argument why it is polynomial, if possible. To disprove it, provide an M-hardness or undecidability proof.


Related Discussions:- Polynomial time algorithm - first order query

What is plotting points, What is Plotting Points? To "plot" or "graph" ...

What is Plotting Points? To "plot" or "graph" values means to find points on a number line. The numbers four, negative two, negative three, zero, two, and negative four are bei

Example of integration by parts - integration techniques, Example of Integr...

Example of Integration by Parts - Integration techniques Illustration1:  Evaluate the following integral. ∫ xe 6x dx Solution : Thus, on some level, the difficulty

Find the maxima or minima and green theorem, 1) find the maxima and minima ...

1) find the maxima and minima of f(x,y,z) = 2x + y -3z subject to the constraint 2x^2+y^2+2z^2=1 2)compute the work done by the force field F(x,y,z) = x^2I + y j +y k in moving

Calculate the equation, Problem1: Find the general solution on -π/2 Dy/...

Problem1: Find the general solution on -π/2 Dy/dx +(tan x)y =(sin 2 x)y 4

Example of probability, Example of Probability: Example: By using...

Example of Probability: Example: By using a die, what is the probability of rolling two 3s in a row? Solution: From the previous example, there is a 1/6 chance of

Explain the vertex formula, Explain the Vertex Formula ? The vertex for...

Explain the Vertex Formula ? The vertex formula is a convenient way of finding the vertex of the graph for any quadratic function. The graph of the quadratic equation f(x) = ax

In terms of x what is the total number of miles they rode, Noel rode 3x mil...

Noel rode 3x miles on his bike and Jamie rode 5x miles on hers. In terms of x, what is the total number of miles they rode? The terms 3x and 5x are such as terms since they hav

Numertic methods, solve by factorization method; 10x-6y-3z=100, -6x+10y-5z=...

solve by factorization method; 10x-6y-3z=100, -6x+10y-5z=100, -3x-5y+10z=100

Measures of central tendency-computation method, Computation method   ...

Computation method           Whereas L = Lower class boundary of the class having the mode             f 0 = Frequency of the class below the modal class

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd