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

Find out the probability, a)  A husband and wife appear in an interview for...

a)  A husband and wife appear in an interview for two vacancies in the same post.  The probability of husband's selection is 1/7 and that of wife's selection is 1/5.  What is th

Outer automorphism, (a) An unordered pair fm; ng with 1 ≤ m ≠ n ≤ 6 is ca...

(a) An unordered pair fm; ng with 1 ≤ m ≠ n ≤ 6 is called a duad. List the 15 duads. (b) There are 15 ways to partition {1, ......, 6 } into 3 duads, such as { {1; 2}, {3, 4},

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

Definition of limit, Definition of limit : Consider that the limit of f(x)...

Definition of limit : Consider that the limit of f(x) is L as x approaches a & write this as provided we can make f(x) as close to L as we desire for all x adequately clos

Geometric progression (g.p.), Learning geometric progression ...

Learning geometric progression vis-á-vis arithmetic progression should make it easier. In geometric progression also we denote the first t

Velocity of derivation, Velocity : Recall that it can be thought of as sp...

Velocity : Recall that it can be thought of as special case of the rate of change interpretation. If the situation of an object is specified by f(t ) after t units of time the vel

Age problem, three years ago,Rica was thrice as old as dandy.Three years he...

three years ago,Rica was thrice as old as dandy.Three years hence,she will be twice as old.Find their present.

Define points, Define Points, Lines, and Spaces Points, lines, and planes...

Define Points, Lines, and Spaces Points, lines, and planes are known as undefined or primitive terms. These are the most significant and fundamental concepts in the study of geom

Lucy youth group increased $1, Lucy's youth group increased $1,569 for char...

Lucy's youth group increased $1,569 for charity. They decided to split the money evenly between 3 charities. How much will each charity receive? Divide the money raised through

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