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

Tangent lines, Recall also which value of the derivative at a specific valu...

Recall also which value of the derivative at a specific value of t provides the slope of the tangent line to the graph of the function at that time, t. Thus, if for some time t the

Sum, i want to trick to know how can i fastest calculate more than compute...

i want to trick to know how can i fastest calculate more than computer

What is the probability shane rolls a 5, Shane rolls a die numbered 1 by 6....

Shane rolls a die numbered 1 by 6. What is the probability Shane rolls a 5? From 2:15 P.M. to 4:15 P.M. is 2 hours. After that, from 4:15 P.M. to 4:45 P.M. is another half hour

Trigonometry, show that, sin 90 degree = 2 cos 45 degree sin 45 degree

show that, sin 90 degree = 2 cos 45 degree sin 45 degree

Eigenvalues and eigenvectors, If you find nothing out of this rapid review ...

If you find nothing out of this rapid review of linear algebra you should get this section.  Without this section you will not be capable to do any of the differential equations wo

To calculate volume of cylinder which formula is used, Mimi is filling a te...

Mimi is filling a tennis ball can along with water. She wants to know the volume of the cylinder shaped can. Which formula will she use? The volume of a cylinder is π times the

Sketch the graph of h (t ) = 1 - 5e 1/(t/2), Sketch the graph of h (t ) = ...

Sketch the graph of h (t ) = 1 - 5e  1/(t/2) Solution : Let's primary get a table of values for this function. Following is the sketch. The major point behin

Method of reduction of order, Consider the equation x 2 y′′+ xy′- y = 4x...

Consider the equation x 2 y′′+ xy′- y = 4x ln x (a) Verify that x is a solution to the homogeneous equation. (b) Use the method of reduction of order to derive the second

Determine the function notation, Given f (x) = - x 2 + 6 x -11 determine e...

Given f (x) = - x 2 + 6 x -11 determine each of the following. (a)    f ( 2) (b)   f ( -10) (c)    f (t ) Solution (a)    f ( 2) = - ( 2) 2   + 6(2) -11 = -3 (

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