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 the slope of a line given two points on it, Finding the Slope of a Lin...

Finding the Slope of a Line, Given Two Points on it ? Find the slope of the line passing through the pairs of points (-5, -2) and (2, 4). One way to find the slope is

Stats, Instructions: 1. Write the null and alternative hypotheses. ...

Instructions: 1. Write the null and alternative hypotheses. 2. Calculate the test statistic. 3. Determine the critical value whether or not there has been an improv

Algebra, how do you work out algebra

how do you work out algebra

Decimals, how to make 2.3 into a fraction?

how to make 2.3 into a fraction?

SOLID MENSURATION, The base of an isosceles triangle and the altitude drawn...

The base of an isosceles triangle and the altitude drawn from one of the congruent sides are equal to 18cm and 15cm, respectively. Find the lengths of the sides of the triangle.

Quick help for exam preparation, can you help me with entrance exam for uni...

can you help me with entrance exam for university ? i really need help so quick

Product rule (f g)' = f ' g + f g', Product Rule: (f g)′ = f ′ g + f g′ ...

Product Rule: (f g)′ = f ′ g + f g′ As with above the Power Rule, so the Product Rule can be proved either through using the definition of the derivative or this can be proved

Perimeter of trinagle, what is the perimeter of a triangele with the sides ...

what is the perimeter of a triangele with the sides of 32 in /22 in/20 in/

Definition of the laplace transform, Definition Assume that f(t) is a ...

Definition Assume that f(t) is a piecewise continuous function. The Laplace transform of f(t) is denoted L{ f (t )} and defined by, There is an optional notation for L

Multiplication rule: dependent events, Multiplication Rule: Dependent Event...

Multiplication Rule: Dependent Events The joint probability of two events A and B which are dependent is equal to the probability of A multiplied by the probability of B given

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