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

Without a calculator give the exact value, without a calculator give the ex...

without a calculator give the exact value of each of the following logarithms. (a) (b) log1000 (c) log 16 16 (d) log 23 1  (e)  Solution (b) log10

Problem solver, a bathroom measure 250 cm by 175 cm calculate the side of t...

a bathroom measure 250 cm by 175 cm calculate the side of the largest square tile that can tile the floor

Markup & markdown, if prices are calculatead with a 35% markup based on cos...

if prices are calculatead with a 35% markup based on cost,what is the percent that those prices should be marked down to get back to their original cost?Choose any convenient cost

Find the quadratic polynomial, Find the Quadratic polynomial whose sum and ...

Find the Quadratic polynomial whose sum and product of zeros are √2 + 1, 1/ √2 + 1 Ans:    sum = 2  √2 Product = 1 Q.P = X 2 - (sum) x + Product ∴ x 2 - (2 √2 )

Describe the system with 3 variables, Describe the System with 3 Variables ...

Describe the System with 3 Variables ? This is an example of solving a system of equations using the substitution method. Warning: You will not understand this example if you

Fractions, what is 1/3 + 2/9 equal

what is 1/3 + 2/9 equal

To find out the perimeter of a triangular give formula, To find out the per...

To find out the perimeter of a triangular region, what formula would you use? The perimeter of a triangle is length of surface a plus length of side b plus length of side c.

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

Determine the projection - vector, Determine the Projection of b = (2, 1, -...

Determine the Projection of b = (2, 1, -1) onto a = (1, 0, -2) There is a requirement of a dot product and the magnitude of a. a →  • b → = 4                             ||a

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