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

Implement immutable data type rational for rational number, Implement an im...

Implement an immutable data type Rational for rational numbers that supports addition, subtraction, multiplication and division. public class Rational Ration

Inverse cosine, Inverse Cosine : Now see at inverse cosine.  Following is ...

Inverse Cosine : Now see at inverse cosine.  Following is the definition for the inverse cosine.                         y = cos -1 x       ⇔ cos y = x                   for

Exercise to think about this aspect of children- maths, Doing the following...

Doing the following exercise will give you and opportunity to think about this aspect of children. E1) List some illustrations of exploration by four or five-year-olds that you

Simple interest, Three payments of $2000 (originally due six months ago, to...

Three payments of $2000 (originally due six months ago, today, and six months from now) have been renegotiated to two payments: $3000 one month from now and a second payment due in

How much is invested at 8% if the total amount of interest, Kevin invested ...

Kevin invested $4,000 in an account which earns 6% interest per year and $x in a different account that earns 8% interest per year. How much is invested at 8% if the total amount o

Trigonometry, can you explain it to me please

can you explain it to me please

Find the volume of ice cream cone, An ice-cream cone has a hemispherical to...

An ice-cream cone has a hemispherical top. If the height of the cone is 9 cm and base radius is 2.5 cm, find the volume of ice cream cone.

#title, IF YOU HAVE 24 BISCUITS HOW MUCH WHOLE BISCUITS DO YOU HAVE IF YOU ...

IF YOU HAVE 24 BISCUITS HOW MUCH WHOLE BISCUITS DO YOU HAVE IF YOU SHARE FIVE BETWEEN 5 FRIENDS

Series - convergence or divergence, Series - Convergence/Divergence In ...

Series - Convergence/Divergence In the earlier section we spent some time getting familiar with series and we briefly explained convergence and divergence.  Previous to worryin

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