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

Example of normal distribution, The mathematics results of 20 first-year un...

The mathematics results of 20 first-year university students are given, together with their results of their performances in the year 12 semester Test and Final Assignment:

We know this equation a°=1.prove this?, we know that    A^m/A^m=1         ...

we know that    A^m/A^m=1                    so A^(m-m)=1                    so A^0=1.....

Application of statistics-economic order quantities (eoq), economic order q...

economic order quantities (EOQ) Statistics may be utilized in ordering or making economic order quantities as EOQ. It is significant for a business manager to understand that

#titldifference between cpm n pert operation research pdfe.., difference be...

difference between cpm n pert operation research pdfepted#

How much money did carlie have after she had paid her friend, Carlie receiv...

Carlie received x dollars every hour she spent babysitting. She babysat a total of h hours. She then gave half of the money to a friend who had stopped through to help her. How muc

Time & distance., Q4. Assume that the distance that a car runs on one liter...

Q4. Assume that the distance that a car runs on one liter of petrol varies inversely as the square of the speed at which it is driven. It gives a run of 25km per liter at a speed o

Solve 8 cos2 (1 - x ) + 13 cos(1 - x )- 5 = 0 trig function, Solve 8 cos 2 ...

Solve 8 cos 2 (1 - x ) + 13 cos(1 - x )- 5 = 0 . Solution Now, as specified prior to starting the instance this quadratic does not factor.  Though, that doesn't mean all i

NUMERABILITY, AFIGURE THIS OUT(3) (14) (17) (20) (25)= 8 WHAT ARE THE PROC...

AFIGURE THIS OUT(3) (14) (17) (20) (25)= 8 WHAT ARE THE PROCEDURES (-)(+)(x)(div) BETWEEN EACH NUMBER TO COME UP WITH 8 ?sk question #Minimum 100 words accepted#

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