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

Elliptic paraboloid - three dimensional spaces, Elliptic Paraboloid Th...

Elliptic Paraboloid The equation which is given here is the equation of an elliptic paraboloid. x 2 /a 2 + y 2 /b 2 = z/c Like with cylinders this has a cross section

Collecting and interpreting data, Q. How to Collecting and interpreting dat...

Q. How to Collecting and interpreting data? Ans. Collecting and interpreting data is the most important job of a statistician. There are many types of studies and differe

Geometric mean, When three quantities a, b and c are in G.P., t...

When three quantities a, b and c are in G.P., then the geometric mean "b" is calculated as follows. Since these quantities are in G.P., the r

lmc, what is the concept of lm

what is the concept of lmc

Example of learning constructing tables versus rote , Maya says thafl for i...

Maya says thafl for instance, to help the children of Class 2 construct the '5 times table', she uses their hands. Each child counts how many fingers on one hand, and then how ma

Find the sides of the two squares, The sum of areas of two squares is 468m ...

The sum of areas of two squares is 468m 2  If the difference of their perimeters is 24cm, find the sides of the two squares. Ans:    Let the side of the larger square be x .

Complex number, If z=re i ? ,find the value of |e iz | Solution)   z=r(c...

If z=re i ? ,find the value of |e iz | Solution)   z=r(cos1+isin1) |e iz |=|e ir(cos1+isin1) |=|e -rsin1 |=e -rsin1

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