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

Trigonometric ratios, How do you find the ratio for these problems?

How do you find the ratio for these problems?

Help, how long would it take if a submarine if it goes 3 feet per minute to...

how long would it take if a submarine if it goes 3 feet per minute to get to 20000 answer

Indices, advantages and disadvantages of paasche and laspeyres indices

advantages and disadvantages of paasche and laspeyres indices

Calculate subsequent proportion, Calculate subsequent proportion: A re...

Calculate subsequent proportion: A recipe calls for 1(1/2) cups of flour to make servings for 6 people.  How much flour should be used to make servings for 4 people? Solut

The multiplication algorithm, THE MULTIPLICATION ALGORITHM :  Some Class 3...

THE MULTIPLICATION ALGORITHM :  Some Class 3 children in a nearby school had been taught the standard multiplication. Algorithm, and had even done reasonably well in the tests bas

Learning, my math skills are keeping me from getting my ged need help in al...

my math skills are keeping me from getting my ged need help in all areas

Explain graphing equations with a negative slope, Explain Graphing Equation...

Explain Graphing Equations with a Negative Slope? If the slope is a negative fraction, place the negative sign on either the numerator or the denominator. Example graph y = -2/

Math, i have problems with math and my teacher said that i am still progres...

i have problems with math and my teacher said that i am still progressing in math

What is the maximum volume of rectangular box, 1. A rectangular piece of ca...

1. A rectangular piece of cardboard measuring 26 inches by 42 inches is to be made into a box with an open top by cutting equal size squares from each comer and folding up the side

4th grade, Ray cut 6 pieces of rope . Each piece was between 67 and 84 inch...

Ray cut 6 pieces of rope . Each piece was between 67 and 84 inches long. What would be the total length of the 6 pieces of rope?

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