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

Simplify the boolean function, Simplify the Boolean function: F...

Simplify the Boolean function: F (w,x,y,z) = ∑ (0, 1, 2, 3, 4, 6, 8, 9, 12, 13, 14)  (8)  Ans:   f(w, x, y, z) = ∑(0, 1, 2, 3, 4, 6, 8, 9, 12, 13, 14) The above

Find the derivatives, Find the derivatives of the following functions a)...

Find the derivatives of the following functions a)      y = 5x 4 +3x -1-x 3 b)      y = (x+1) -1/2 c)      y= e x2+1 d)     y= e 3x lnx e)     y =ln(x+1/x)y

Example of implicit differentiation, Example of Implicit differentiation ...

Example of Implicit differentiation So, now it's time to do our first problem where implicit differentiation is required, unlike the first example where we could actually avoid

Subtract, Ask question Minimum 100 words accepted# 1000-101

Ask question Minimum 100 words accepted# 1000-101

Simplify Radicals, Can I have simplify radicals for Alebgera 2

Can I have simplify radicals for Alebgera 2

Percentage, how do you you find 40% if you 35 out of 40

how do you you find 40% if you 35 out of 40

Algebra, please tell me what is algebra and how i can understand it

please tell me what is algebra and how i can understand it

Factoring, how are polynomials be factored/?

how are polynomials be factored/?

Lines- common polar coordinate graphs, Lines- Common Polar Coordinate Graph...

Lines- Common Polar Coordinate Graphs A few lines have quite simple equations in polar coordinates. 1.  θ = β We are able to see that this is a line by converting to Car

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