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

Determine the probability, Determine the Probability From a pack of pl...

Determine the Probability From a pack of playing cards what is the probability of; (i)  Picking either a 'Diamond' or a 'Heart' → mutually exclusive (ii) Picking either

What is the probability of choosing a red ball, Q. What is the probability ...

Q. What is the probability of choosing a red ball? Ans. A box contains a red, blue and white ball. Two are drawn with replacement. (This means that one ball is selected, i

Earth Day Bags, #question.I headed into Target in Webster, NY for an advert...

#question.I headed into Target in Webster, NY for an advertized free Earth Day Bag in (local newspaper and on your entrance store doors) and at 10:30 a.m. on Sunday, April 22nd, th

Simplex method, max z=3x1+2x2 s.t x1+2x2 3x1+2x2>=6 x1+4x2 ...

max z=3x1+2x2 s.t x1+2x2 3x1+2x2>=6 x1+4x2 x1,x2,x3>=0

Determine the probability of given question, Q. Assume a birthday is equall...

Q. Assume a birthday is equally likely to occur in each of the 365 days. In a group of 30 people, what is the probability that no two have birthdays on the same day? Solution:

.fractions, what is the difference between North America''s part of the tot...

what is the difference between North America''s part of the total population and Africa''s part

Find out that vector are linearly dependent, Find out if the following set ...

Find out if the following set of vectors are linearly independent or linearly dependent. If they are linearly dependent get the relationship among them. Solution : Ther

Statistics, How do you calculate for the distance between two co-ordinates?...

How do you calculate for the distance between two co-ordinates?

Market orientation, what is market orientation? what is the importance of ...

what is market orientation? what is the importance of market orientation?what are its implementation?

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