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

.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

Prove the equality of axiom choice, (1) Prove that Zorn's lemma is equivale...

(1) Prove that Zorn's lemma is equivalent to axiom of choice. (2) Use Zorn's Lemma to prove the existence of E.

Definition of relation, Definition of Relation A relation is a set of o...

Definition of Relation A relation is a set of ordered pairs. It seems like an odd definition however we'll require it for the definition of a function though, before actuall

Standard deviation, Certain model of new home distributed with a mean of $1...

Certain model of new home distributed with a mean of $150,000. Find percentage of buyers who paid between $150,000-155,000 if standard deviation is $1800.

Complement of a set, Need solution For the universal set T = {1, 2, 3, 4...

Need solution For the universal set T = {1, 2, 3, 4, 5} and its subset A ={2, 3} and B ={5, } Find i) A 1 ii) (A 1 ) 1 iii) (B 1 ) 1

Integers , (-85) from (-21) and explain me

(-85) from (-21) and explain me

Differential calculus and probability, Josephine is constructing an open bo...

Josephine is constructing an open box by cutting the squares off the corners of a sheet of paper sized 20cm by 16cm. She is considering options of 3cm, 4cm and 5cm squares in order

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