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

Prove that a tree with n vertices has n - 1 edges, Prove that A tree with n...

Prove that A tree with n vertices has (n - 1) edges.    Ans: From the definition of a tree a root comprise indegree zero and all other nodes comprise indegree one. There should

Round this number to the closest thousandth, It takes the moon an average o...

It takes the moon an average of 27.32167 days to circle the earth. Round this number to the closest thousandth. The thousandths place is the third digit to the right of the dec

Arithmetic progression, the radii of circular base of right circular cylind...

the radii of circular base of right circular cylinder and cone are in the ratio of 3:4 and their height are in the ratio of the 2:3 what is the ratio of their volume?

Obtain the sum of the squares of values, This question is in the form of an...

This question is in the form of an exercise and questions designed to give you more insight into signal processing. On the Moodle site for the module there is an EXCEL file called

Service marketing, assignment of marketing mix on healthservices

assignment of marketing mix on healthservices

Factoring quadratic polynomials, Primary, note that quadratic is another te...

Primary, note that quadratic is another term for second degree polynomial. Thus we know that the largest exponent into a quadratic polynomial will be a2. In these problems we will

The distributive law, The Distributive Law :  If you were asked to mentall...

The Distributive Law :  If you were asked to mentally multiply 37 with 9, how would you proceed? 1 would do it as follows - 37 is 30 + 7, 30 x 9 = 270, 7 x 9 = 63, so 270 + 63, th

Evalute right-hand limit, Evaluate following limits. Solution ...

Evaluate following limits. Solution Let's begin with the right-hand limit.  For this limit we have, x > 4  ⇒          4 - x 3   = 0      also, 4 - x → 0  as x → 4

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