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

Binormal vector - three dimensional space, Binormal Vector - Three Dimensio...

Binormal Vector - Three Dimensional Space Next, is the binormal vector.  The binormal vector is illustrated to be, B → (t) = T → (t) * N → (t) Since the binormal vecto

Impediments in time series analysis, Impediments in time series analysis ...

Impediments in time series analysis Accuracy of data in reflecting a) Drastic changes for illustration in the advent of a major competitor, period of war or unexpected chan

Differential equations, Verify Liouville''''''''s formula for y "-y" - y'''...

Verify Liouville''''''''s formula for y "-y" - y'''''''' + y = 0 in (0, 1) ?

Show that the height of the opposite house, From a window x meters hi...

From a window x meters high above the ground in a street, the angles of elevation and depression of the top and the foot of the other house on the opposite side of the street  are

Trig, I need help with this question: Find the probability that two quarter...

I need help with this question: Find the probability that two quarters and a nickel are chosen without replacement from a bag of 8 quarters and 12 nickles.

Territories never was a venitian possesion, Which of those territories neve...

Which of those territories never was a Venitian possesion? Cyprus Morea Crete Sicily

Lpp, A paper mill produces two grades of paper viz., X and Y. Because of ra...

A paper mill produces two grades of paper viz., X and Y. Because of raw material restrictions, it cannot produce more than 400 tons of grade X paper and 300 tons of grade Y paper i

Triangles are resolute, a) How many equivalence relations on {a, b, c, d, e...

a) How many equivalence relations on {a, b, c, d, e, f} have b)  How many arrangements are there of c)  How many triangles are resolute by the vertices of a regular polygon w

Rounding, the number is 605176 the underline digit is 0

the number is 605176 the underline digit is 0

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