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

Probability, One coin is tossed thrice. what will be the probability of get...

One coin is tossed thrice. what will be the probability of getting neither 3 heads nor 3 tails

Statistics Assignment, A. Design an investigation that details the followi...

A. Design an investigation that details the following six components:

How to find the range of a function, How to Find the range of a function ? ...

How to Find the range of a function ? Sigh. Students ask me this all the time. They don't want an explanation, they want a procedure. "Tell me the steps!" Unfortunately, th

Construction, draw a line OX=10CM and construct an angle xoy = 60. (b)bisec...

draw a line OX=10CM and construct an angle xoy = 60. (b)bisect the angle xoy and mark a point A on the bisector so that OA = 7cm

Estimate the loss to the bank - restructure the loan, Your bank has a loan ...

Your bank has a loan outstanding with a current balance of $1,000,000 that is payable in quarterly equal instalments of $49,924.  This loan has another 6 years to maturity.  The bo

Polynomials, for what value of k,the following system of equations have inf...

for what value of k,the following system of equations have infinite solutions?kx + 5y -(k-5)=0;20x +ky - k=0

Cartesian Coordinates, In the view below of the robot type of Cartesian Coo...

In the view below of the robot type of Cartesian Coordinates, is not the "Z" and "Y" coordinates reversed? http://www.expertsmind.com/topic/robot-types/cartesian-coordinates-91038

Help me please, Cristiano Ronaldo runs 33.6 kilometres per hour. Usain Bolt...

Cristiano Ronaldo runs 33.6 kilometres per hour. Usain Bolt set world record for running 100 m at 9.58 sec. Show me how to compare these two sportsmen. Step by step.

Logs, log4^(x+2)=log4^8

log4^(x+2)=log4^8

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