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

Evaluate the circumference of circle, If the diameter of a circle is triple...

If the diameter of a circle is tripled times, the circumference is a. multiplied by 3. b. multiplied by 6. c. multiplied by 9. d. multiplied by 12. a. The formula fo

Laws of logarithms, express each logariths in terms of log3 P and log3 Q. 1...

express each logariths in terms of log3 P and log3 Q. 1. log3 P^2 Q^3

Equal matrices - linear algebra and matrices, I need assignment help for Eq...

I need assignment help for Equal Matrices. can you please define Equal Matrices?

The low temperature in Achorage, The low temperature in Anchorage, Alaska t...

The low temperature in Anchorage, Alaska today was negative four degrees. The low temperature in Los Angeles, California was sixty-three degreees. What is the difference in the two

Inverse laplace transforms, Determining the Laplace transform of a function...

Determining the Laplace transform of a function is not terribly hard if we've found a table of transforms opposite us to use as we saw in the previous section. What we would want t

Example of addition of signed numbers, Example of addition of Signed Number...

Example of addition of Signed Numbers: Example: (-2) + 3 + 4 = 0 - 2 + 3 + 4 Solution: Thus: (-2) + 3 + 4 = 5  Example: 10 + (-5) + 8 + (-7)

Size of the penumbra, With reference to Fig. 1(a) show that the magnificati...

With reference to Fig. 1(a) show that the magnification of an object is given by M=SID/SOD. With reference to Fig. 1(b) show that the size of the penumbra (blur) f is given by f

Children learn maths from each other, Children Learn From Each Other :  Th...

Children Learn From Each Other :  The other day I had gone to a, nearby school to observe the teacher-children interaction. The children were working on a problem that the teacher

Find the radii of the two circles , The sum of the diameters of two circle...

The sum of the diameters of two circles is 2.8 m and their difference of circumferences is 0.88m. Find the radii of the two circles  (Ans: 77, 63) Ans:    d 1 + d 2 = 2.8 m=

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