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

Numeration, which of these is between 5,945,089 and 5,956,108

which of these is between 5,945,089 and 5,956,108

Definition of infinite limits, Infinite limits : Let's now move onto the d...

Infinite limits : Let's now move onto the definition of infinite limits. Here are the two definitions which we have to cover both possibilities, limits which are positive infinity

Commercial, The C.P. of 20 articles is same as theS.P. of x articles.Articl...

The C.P. of 20 articles is same as theS.P. of x articles.Article profit is 25%.Find x

Find ad, A circle is inscribed in a triangle ABC having sides 8cm, 10cm and...

A circle is inscribed in a triangle ABC having sides 8cm, 10cm and 12cm as shown in the figure. Find AD, BE and CF.

Determine the direction cosines and direction angles, Determine or find out...

Determine or find out the direction cosines and direction angles for a = (2, 1, -4) Solution We will require the magnitude of the vector. ||a|| = √ (4+1+16) = √ (21)

Determine the inverse function f ( x ), Given f ( x ) = 3x - 2 determine ...

Given f ( x ) = 3x - 2 determine     f -1 ( x ) . Solution Now, already we know what the inverse to this function is as already we've done some work with it.  Though, it

Draw the digraph for the partial order, 1. Consider the relation on A = {1,...

1. Consider the relation on A = {1, 2, 3, 4} with relation matrix: Assume that the rows and columns of the matrix refer to the elements of A in the order 1, 2, 3, 4. (a)

Polynomials, sum of zero of polynomial x2-2x+1is equal to sum of zero of po...

sum of zero of polynomial x2-2x+1is equal to sum of zero of polynomial x3-2x+x then find the product of all the three zero of the second polynomial

Polynomials, On dividing p(X)=5x^(4)-4x^(3)+3x^(2)-2x+1 by g(x)=x^(2)+2 if ...

On dividing p(X)=5x^(4)-4x^(3)+3x^(2)-2x+1 by g(x)=x^(2)+2 if q(x)=ax^(2)+bx+c, find a,b and c.

Venn diagram - set theory and calculus, Venn Diagram - Set theory and calcu...

Venn Diagram - Set theory and calculus A easy way of representing sets and relations among sets is by means of the Venn diagram. Venn diagram includes of a rectangle that pres

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