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

Circle, in one point of the circle only one tangent can be drawn. prove

in one point of the circle only one tangent can be drawn. prove

Math 533, Project part A, part B, part C

Project part A, part B, part C

Vectors, why minimum three coplanar vectors are required to give zero resul...

why minimum three coplanar vectors are required to give zero resultant and not two?

Find out the radius of convergence, Example: Find out the radius of conver...

Example: Find out the radius of convergence for the following power series. Solution : Therefore, in this case we have, a n = ((-3) n )/(n7 n+1 )   a n+1 = (

Find the larger of two supplementary angles, The larger of two supplementar...

The larger of two supplementary angles exceeds the smaller by 180, find them. (Ans:990,810) Ans:    x + y = 180 0          x - y =  18 0        -----------------

Find inverse laplace transform, Question: Find Inverse Laplace Transfor...

Question: Find Inverse Laplace Transform of the following (a) F(s) = (s-1)/(2s 2 +8s+13)     (b) F(s)= e -4s /(s 2 +1) + (1/s 3 )

Differential equatoin, how to solve questions based on higher differential ...

how to solve questions based on higher differential equations

Application of statistics-quality control, Quality Control Normally th...

Quality Control Normally there is a quality control departments in every industry which is charged along with the responsibility of ensuring about the products made do meet th

Quantitative method, Year 1 2 3 4 ...

Year 1 2 3 4 5 6 7 8 9 10 Corn revenue 40 44 46

What is plotting points, What is Plotting Points ? How would you go abo...

What is Plotting Points ? How would you go about drawing the graph of y = x2 ? One way to do it is by plotting points. (Your graphing calculator uses this method.) This is

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