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

Elimination technique of linear equations, What is the Elimination techniqu...

What is the Elimination technique of Linear Equations?

Calculate the probability, Calculate the Probability A bag contains 80...

Calculate the Probability A bag contains 80 balls of such 20 are red, 25 are blue and 35 are white.  A ball is picked at random what is the probability that the ball picked is

How to adding rational expressions with common denominators, Adding Rationa...

Adding Rational Expressions with Common Denominators To add or subtract fractions or rational expressions with common denominators, all you do is add or subtract the numerators

Rules of integration, Rules of Integration 1. If ...

Rules of Integration 1. If 'k' is a constant then ∫Kdx =  kx + c 2. In

Drawn to a circle with center o, From a point P, two tangents PA are drawn ...

From a point P, two tangents PA are drawn to a circle with center O.If OP=diameter of the circle show that triangle APB is equilateral. Ans:    PA=PB (length of tangents

Marketing, What''s the price for a Marketing plan assignment ( postgraduate...

What''s the price for a Marketing plan assignment ( postgraduate)5000 words?

Deflation, Deflation Indexes may be utilized to deflate time series so...

Deflation Indexes may be utilized to deflate time series so that comparisons among periods may be made in real terms. This is a process of decreases a value measured in cur

Rate -categories of multiplication, Rate - when we know how many objects...

Rate - when we know how many objects are in a set, and need to find out the total number in several copies of that set. (e.g., if a child uses 4 copybooks in a year, how many co

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