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 integrals involving trig functions, Example of Integrals Involvi...

Example of Integrals Involving Trig Functions Example: Estimate the following integral. ∫ sin 5 x dx Solution This integral no longer contains the cosine in it that

Find the limit of given matrix, What is required: This assignment is to be ...

What is required: This assignment is to be resolved using Maple. You are to upload a single Maple worksheet with file name FamilynameFirstname.mw (e.g., CarrElliot.mw), using the A

Ratio, how can i solve it

how can i solve it

Abstract algebra, How many homomorphism are there from z2 to z3. Zn is grou...

How many homomorphism are there from z2 to z3. Zn is group modulo n

Solution set of equation, The complete set of all solutions is called as th...

The complete set of all solutions is called as the solution set for the equation or inequality.  There is also some formal notation for solution sets.  We have to still acknowledge

prove that x = 2h/3, A vertical post stands on a horizontal plane.  The an...

A vertical post stands on a horizontal plane.  The angle of elevation of the top is 60 o and that of a point x metre be the height of the post, then prove that x = 2 h/3 .

Index shift - sequences and series, Index Shift - Sequences and Series ...

Index Shift - Sequences and Series The main idea behind index shifts is to start a series at a dissimilar value for whatever the reason (and yes, there are legitimate reasons

probability , An engineer has 200 resistors that he keeps in one box. Resi...

An engineer has 200 resistors that he keeps in one box. Resistors are colored to help their identification, and in this box there are 30 white resistors, 50 black resistors, 80 red

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