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 coordinates of the other two vertices, The two opposite vertices o...

The two opposite vertices of a square are (-1, 2) and (3, 2). Find the coordinates of the other two vertices.

How many ounces of tomatoes does mark have, Mark has three 4 1/2 oz cans o...

Mark has three 4 1/2 oz cans of tomatoes and ?ve 8 1/4 oz cans. How many ounces of tomatoes does Mark have? Ignore the fractional parts of the mixed numbers at first and mul

Calculus, how to find relative extrema at the indicated interval of the fol...

how to find relative extrema at the indicated interval of the following functions and how to sketch it?

Draw the graph for finite state machine, Consider the finite state machine ...

Consider the finite state machine whose state transition table is : Draw the graph for it.  Ans: The graph for the automata according to the transition table is drawn b

Fourier series - partial differential equations, Fourier series - Partial D...

Fourier series - Partial Differential Equations One more application of series arises in the study of Partial Differential Equations.  One of the more generally employed method

Calculus with vector functions - three dimensional space, Calculus with Vec...

Calculus with Vector Functions In this part we need to talk concisely on derivatives, limits and integrals of vector functions. Like you will see, these behave in a quite pred

#title.simpal harmonic motion., #questionShow that the system oscillates in...

#questionShow that the system oscillates in simple harmonic motion demonstrated by; , for which the general solution where X = (x – x0)..

Disjointed sets or mutually exclusive, Disjointed Sets or Mutually Exclusiv...

Disjointed Sets or Mutually Exclusive Two sets are said to be mutually or disjointed exclusive whether they have no elements in common. Sets P and R underneath are disjointed

matlab, how to solve simplex method using matlab

how to solve simplex method using matlab?

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