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

Geometry, What is the better buy?a square pizza measuring 8 inches by 8inch...

What is the better buy?a square pizza measuring 8 inches by 8inches that cost $10 or a round pizza with a 9 inch diameter that also cost $10?

Sums and differences of cubes and other odd powers, Sums and Differences of...

Sums and Differences of Cubes (and other odd powers)? You can factor a sum or difference of cubes using the formulas a 3 - b 3 = (a - b )(a 2 + ab + b 2 ) and a 3 + b 3 =

Area with polar coordinates - parametric equations, Area with Polar Coordin...

Area with Polar Coordinates In this part we are going to look at areas enclosed via polar curves.  Note also that we said "enclosed by" in place of "under" as we usually have

What is the greatest common factor of 24 and 64, What is the greatest commo...

What is the greatest common factor of 24 and 64? List the factors of 24 and 64. The largest factor that they have in common is the greatest common factor. Factors of 24: 1,

Determine matrix of transformation for orthogonal projection, Determine the...

Determine the matrix of transformation for the orthogonal projection onto the line L that passes through the origin and is in the direction Û=(3/13 , 4/13 , 12/13). Determine the r

Compute the value of the following limit, Compute the value of the followin...

Compute the value of the following limit. Solution: Notice as well that I did say estimate the value of the limit.  Again, we will not directly compute limits in this sec

Find out all the critical points and derivation, Find out all the critical ...

Find out all the critical points for the function. Solution Following is the derivative for this function. Now, this looks unpleasant, though along with a little fa

Determine the probability, An insurance company/organization takes a keen i...

An insurance company/organization takes a keen interest in the age at which a person is insured. Thus a survey conducted on prospective clients indicated that for clients having th

Example of developing estimation skills, There are a variety of strategies ...

There are a variety of strategies that people use for developing this ability. For instance, while adding 1821,695 and 250, a person could estimate it mentally i) by rounding of

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