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

Hi, how do you find the distance between the sun and earth

how do you find the distance between the sun and earth

Calculate the average return, A department store faces a decision for a sea...

A department store faces a decision for a seasonal product for which demand can be high, medium or low. The purchaser can order 1, 2 or 3 lots of this product before the season beg

Indicestitle.., Advantages and disadvantages of paasche indices

Advantages and disadvantages of paasche indices

Modeling - nonhomogeneous systems, Under this section we're going to go bac...

Under this section we're going to go back and revisit the concept of modeling only now we're going to look at this in light of the fact as we now understand how to solve systems of

Solution of quadratic equations, Solution of quadratic equations, please pr...

Solution of quadratic equations, please provide me the assignment help for solving the quadratic equations.

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

Partial differential equations, I need expert who can solve 10 set of PDE w...

I need expert who can solve 10 set of PDE with constant of integration.

Define a hamilton path, Define a Hamilton path. Determine if the following ...

Define a Hamilton path. Determine if the following graph has a Hamilton circuit. Ans: A path is known as a Hamiltonian path if it consists of every vertex of the graph e

Basic concepts of second order differential equations, In this section we w...

In this section we will be looking exclusively at linear second order differential equations. The most common linear second order differential equation is in the type.  p (t ) y

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