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

Find the sides of hypotenuse , The hypotenuse of a right triangle is 20m. ...

The hypotenuse of a right triangle is 20m. If the difference between the length of the other sides is 4m. Find the sides. Ans: APQ x 2 + y 2 = 202 x 2  + y 2 = 400

Solve the value of x and y , 7(y + 3) - 2(x + 2) = 14, 4 (y - 2) + 3(x ...

7(y + 3) - 2(x + 2) = 14, 4 (y - 2) + 3(x - 3) = 2 Ans:    7(y + 3) - 2 (x+ 2) = 14          --------- (1) 4(y- 2) + 3(x - 3) = 2 ----------(2) From (1) 7y +21 -

Trigonomitry, Ask if tanA+sinA=m and m^2-n^2=4 rute mn show that tanA-sinA=...

Ask if tanA+sinA=m and m^2-n^2=4 rute mn show that tanA-sinA=n

Prove that prims algorithm produces a minimum spanning tree, Prove that Pri...

Prove that Prim's algorithm produces a minimum spanning tree of a connected weighted graph. Ans: Suppose G be a connected, weighted graph. At each iteration of Prim's algorithm

Advanced functions, writ the equation that describes the motion of a point ...

writ the equation that describes the motion of a point on the wheel that has a center of 4m off the ground, has radius of 15 cm, makes a full rotation every 10 seconds and starts a

What is the difference in the two low temperatures, The low temperature in ...

The low temperature in Anchorage, Alaska present was -4°F. The low temperature in Los Angeles, California was 63°F. What is the difference in the two low temperatures? Visualiz

Calculate the regular monthly payments, A washing machine, cash price $ 850...

A washing machine, cash price $ 850 is available on the following terms: A deposit of $ 100 followed by equal payments at the end of each month for the next 18 months, if intere

Continuity requirement, Continuity requirement : Let's discuss the continu...

Continuity requirement : Let's discuss the continuity requirement a little. Nowhere in the above description did the continuity requirement clearly come into play.  We need that t

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