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

Quantitative Techniques, The following table given the these scores and sal...

The following table given the these scores and sales be nine salesman during last one year in a certain firm: text scores sales (in 000''rupees) 14 31 19

Cynthia, #stioquen..Store A is advertising a sale that will reduce prices o...

#stioquen..Store A is advertising a sale that will reduce prices on all merchandise by 15%. Store B is advertising a sale that will reduce prices on all merchandise by one over fiv

Basic set union operation, Q. Basic Set Union Operation? Ans. Supp...

Q. Basic Set Union Operation? Ans. Suppose instead that your school needs to know which students are taking either art or business or both. Then the students who are ta

How many hours will it take for them to be 822 miles apart, Two trains leav...

Two trains leave the same city at the same time, one going east and the other going west. If one train is traveling at 65 mph and the other at 72 mph, how many hours will it take f

Subjective probability, Subjective Probability Probability may be de...

Subjective Probability Probability may be determined by a personal statement of how likely an outcome is in a single trial or repetition of the same experiment. Since sub

Calculate the probability, Calculate the Probability A bag contains 80...

Calculate the Probability A bag contains 80 balls of such 20 are red, 25 are blue and 35 are white.  A ball is picked at random what is the probability that the ball picked is

Geometry, finding missing values from given triangle diagra m..

finding missing values from given triangle diagra m..

Proof of various limit properties, PROOF OF VARIOUS LIMIT PROPERTIES In...

PROOF OF VARIOUS LIMIT PROPERTIES In this section we are going to prove several of the fundamental facts and properties about limits which we saw previously. Before proceeding

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