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

Tangents with polar coordinates - parametric equations, Tangents with Polar...

Tangents with Polar Coordinates Here we now require to discuss some calculus topics in terms of polar coordinates. We will begin with finding tangent lines to polar curves.

Create a table with the number of components of each size, Look on the web ...

Look on the web for a data base that can be converted to an undirected graph.  For  example, in Science there is a data base of proteins and their interactions.  Each protein can b

Area of a parallelogram x what is the height in terms of x, The area of a p...

The area of a parallelogram is x 8 . If the base is x 4 , what is the height in terms of x? Since the area of a parallelogram is A = base times height, then the area divided by

Substitutions at bernoulli equations, In the prior section we looked at Ber...

In the prior section we looked at Bernoulli Equations and noticed that in order to solve them we required to use the substitution v = y 1-n . By using this substitution we were cap

Point of intersection, Equation of line joining(0,0)and point of intersecti...

Equation of line joining(0,0)and point of intersection of X2+Y2+2XY=4 , 3x2+5y2-xy=7 is solution) The two equations above represent pair of straight lines. We can complete the sq

What is the sample space for this experiment, A die is thrown repeatedly un...

A die is thrown repeatedly until a six comes up. What is the sample space for this experiment? HINT ;A= {6} B={1,2,3,4,5,} Ans: The sample space is = {A, BA, BBA, BBBA, BBBBA.

DETERMINANT, IF 7 AND 2 ARE TWO ROOTS OF THE EQUATION |X 3 7 2 X 2 7 6 X...

IF 7 AND 2 ARE TWO ROOTS OF THE EQUATION |X 3 7 2 X 2 7 6 X |=0 THEN FIND THE THIRD ROOT IS

George worked from 7:00 am to 3:30 pm how much he earn, George worked from ...

George worked from 7:00 A.M. to 3:30 P.M. with a 45-minute break. If George earns $10.50 per hour and does not obtain paid for his breaks, how much will he earn? (Round to the near

Arithmetic/Geometric Sequences and Binomial Expansion, Find the 35th term o...

Find the 35th term of the sequence in which a1 = -10 and the common difference is 4.

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