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

Mathematical science, state tha different types of models used in operation...

state tha different types of models used in operations research.

Polynomial time algorithm - first order query, For queries Q 1 and Q 2 , w...

For queries Q 1 and Q 2 , we say Q 1 is contained in Q 2 , denoted Q 1 ⊆ Q 2 , iff Q 1 (D) ⊆ Q 2 (D) for every database D. The container problem for a fixed Query Q 0 i

Define a complete lattice, Define a complete lattice and give one example. ...

Define a complete lattice and give one example. Ans:  A lattice (L, ≤) is said to be a complete lattice if, and only if every non-empty subset S of L has a greatest lower bound

Linear equations, A police academy is training 14 new recruits. Some are wo...

A police academy is training 14 new recruits. Some are working dogs and others are police officers. There are 38 legs in all. How many of each type of recruits are there?

Substitutions at bernoulli equations, In the prior section we looked at Ber...

In the prior section we looked at Bernoulli Equations and noticed that in order to solve them we required to use the substitution v = y 1-n . By using this substitution we were cap

Find the z-score, For a population with a mean of μ=80 and a standard devia...

For a population with a mean of μ=80 and a standard deviation of o=12, find the z-score corresponding to each of the following samples. a.    M=83 for a sample of n=4 scores b.

Calculate values of the derivative, First, see that the right hand side of ...

First, see that the right hand side of equation (2) is a polynomial and thus continuous. This implies that this can only change sign if this firstly goes by zero. Therefore, if the

Velocity and acceleration - three dimensional space, Velocity and Accelerat...

Velocity and Acceleration - Three Dimensional Space In this part we need to take a look at the velocity and acceleration of a moving object.    From Calculus I we are famili

Determine the measure of the smallest angle, The calculation of two complem...

The calculation of two complementary angles are in the ratio of 7:8. Determine the measure of the smallest angle. a. 84° b. 42° c. 48° d. 96° b. Two angles are compl

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