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

Marketing management , Draw the typical profile(s) of Shoppers'' Stop custo...

Draw the typical profile(s) of Shoppers'' Stop customers segments.

Highest common factor (hcf), We know that a factor is a quantity whic...

We know that a factor is a quantity which divides the given quantity without leaving any remainder. Similar to LCM above we can find a highest common factor (HCF)

Arc length formula - applications of integrals, Arc length Formula L = ...

Arc length Formula L = ∫ ds Where ds √ (1+ (dy/dx) 2 ) dx                                     if y = f(x), a x b ds √ (1+ (dx/dy) 2 ) dy

Numerical Analysis, Hello there I have question about convergence of pth ...

Hello there I have question about convergence of pth root of square matrix? Do you have any expert in numerical analysis ?

Levels of significance - rejection and acceptance regions, Levels of signif...

Levels of significance A level of significance is a probability value which is utilized when conducting tests of hypothesis. A level of significance is mostly the probability

Applications of integrals, Applications of Integrals In this part we're...

Applications of Integrals In this part we're going to come across at some of the applications of integration.  It should be noted also that these kinds of applications are illu

How to convert percentages to decimals, Q. How to Convert Percentages to De...

Q. How to Convert Percentages to Decimals? Ans. Since percent stands for "hundredths", to write a percentage as a decimal you just need to find how many hundredths it repr

Sphere and cone, How tall does a cone with diameter of 10 inches have to be...

How tall does a cone with diameter of 10 inches have to be to fit exactly half of a sphere with a diameter of 10 inches inside it?

How many different combinations could she form these item, Wendy has 5 pair...

Wendy has 5 pairs of pants and 8 shirts. How many different combinations could she form with these items? Multiply the number of choices for each item to find out the number of

Determine rational exponents, Evaluate following. (a) 625 3/4 Solut...

Evaluate following. (a) 625 3/4 Solution  (a) 625 3/4 Again, let's employ both forms to calculate this one.             625 3/4   =( 625 1/4 ) 3 =(5) 3   = 12

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