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

Correlation coefficient, Correlation coefficient - These are numerical...

Correlation coefficient - These are numerical measures of the correlations existing between the independent and the dependent variables - These are better measures of corre

Hours, jeff left hartford at 2:15 pm and arrived in boston at 4:45 pm how l...

jeff left hartford at 2:15 pm and arrived in boston at 4:45 pm how long did the drive take him?

Mensuration, if area of a rectangle is 27 sqmtr and it perimeter is 24 m fi...

if area of a rectangle is 27 sqmtr and it perimeter is 24 m find the length and breath#

Formula to estimate distance around circle table, If Lisa wants to know the...

If Lisa wants to know the distance around her circular table, that has a diameter of 42 in, which formula will she use? The circumference or distance around a circle is π times

Transportation and assignment problem, what is transportation and assignmen...

what is transportation and assignment problem. give the computer application of transportation and assignment problem

Example of elps maths learning, Do you agree with the necessity of the sequ...

Do you agree with the necessity of the sequencing E - L - P - S for learning? If not, then what do you suggest as an alternative path for understanding and internalising mathematic

#titl., class 10 Q.trigonometric formula of 1 term

class 10 Q.trigonometric formula of 1 term

Calculate the radius of the circle, In the figure, ABCD is a square inside ...

In the figure, ABCD is a square inside a circle with centre O. The Centre of the square coincides with O & the diagonal AC is horizontal of AP, DQ are vertical & AP = 45 cm, DQ = 2

How do you find the second minimum spanning tree of a graph, How do you fin...

How do you find the second minimum spanning tree of a graph?  Find the second minimum spanning tree of the following graph.  Ans: The second minimum spanning tree is acq

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