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

Help, how long would it take if a submarine if it goes 3 feet per minute to...

how long would it take if a submarine if it goes 3 feet per minute to get to 20000 answer

Example on abels theorem, Without solving, find out the Wronskian of two so...

Without solving, find out the Wronskian of two solutions to the subsequent differential equation. t 4 y'' - 2t 3 y' - t 8 y = 0 Solution : First thing that we want to d

Impact did this have on spanish approach their subjugation, Compare and con...

Compare and contrast the Conquest of Mexico and the Conquest of Peru in the 16 th century. How did the structures of the indigenous empires in these two regions differ? What impact

Multiplication of two matrices, Need assignment help, Explain Multiplicatio...

Need assignment help, Explain Multiplication of two Matrices.

find the original number, A two-digit number is seven times the sum of its...

A two-digit number is seven times the sum of its digits.  The number formed by reversing the digits is 18 less than the  original number. Find the original number.

Differntial equation, Verify Liouville''''s formula for y "-y" - y'''' + y ...

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

Pythagorean theorem, How do you find the perimeter of an irregular shape us...

How do you find the perimeter of an irregular shape using Pythagorean theorem?

VECTORS, OQRS IS A QUADRILATERAL SUCH THAT OQ= -6,3 OR= -3,7 AND OS= 1,5. T...

OQRS IS A QUADRILATERAL SUCH THAT OQ= -6,3 OR= -3,7 AND OS= 1,5. T IS ON OQ SUCH THAT OT: TQ= 1:2 PROVE THAT QRST IS AA PARALLEGRRAM

Derivative with polar coordinates - parametric equations, Derivative with P...

Derivative with Polar Coordinates dy/dx = (dr/dθ (sin θ) + r cos θ) / (dr/dθ (cosθ) - r sinθ) Note: Rather than trying to keep in mind this formula it would possibly be easi

Compute the value of the following limit, Compute the value of the followin...

Compute the value of the following limit. Solution: Notice as well that I did say estimate the value of the limit.  Again, we will not directly compute limits in this sec

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