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

Sum, As1212uestion #Minimum 100 words accepted#

As1212uestion #Minimum 100 words accepted#

More optimization problems, More Optimization Problems Example   A w...

More Optimization Problems Example   A window is being built in which the bottom is rectangle and the top is a semicircle. If there framing materials is 12 meters what have

Estimate percent of the original price will the customer pay, Bikes are on ...

Bikes are on sale for 30% off the original price. What percent of the original price will the customer pay if he gets the bike at the sale price? The original price of the bike

Definition of concavity, Definition 1: Given the function f (x ) then 1...

Definition 1: Given the function f (x ) then 1. f ( x ) is concave up in an interval I if all tangents to the curve on I are below the graph of f ( x ) . 2. f ( x ) is conca

Evaluate inverse tangents , Evaluate following limits. Solution ...

Evaluate following limits. Solution Here the first two parts are actually just the basic limits including inverse tangents and can easily be found by verifying the fol

Find the angle of elevation, A 50-foot pole casts a shadow on the ground. ...

A 50-foot pole casts a shadow on the ground. a) Express the angle of elevation θ of the sun as a function of the length s of the shadow. (Hint you may wish to draw this firs

Geometyr, Lines EF and GH are graphed on this coordinate plane. Which point...

Lines EF and GH are graphed on this coordinate plane. Which point is the intersection of lines EF and GH?

Describe subtracting negative fractions, Describe Subtracting Negative Frac...

Describe Subtracting Negative Fractions? Subtracting two fractions, whether one is positive and one is negative, or whether they are both negative, is almost the same process a

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