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 inflection point - set theory and calculus, Need help, Determine...

Need help, Determine the points of inflection on the curve of the function y = x 3

Large samples, LARGE SAMPLES These are samples that have a sample size ...

LARGE SAMPLES These are samples that have a sample size greater than 30(that is n>30) (a)   Estimation of population mean Here we suppose that if we take a large sample

How many dollars did they raise the first two days, The freshman class is p...

The freshman class is participating in a fundraiser. Their target is to raise $5,000. After the first two days of the fundraiser, they have raised 32 percent of their goal. How man

Integrals involving trig functions - integration techniques, Integrals Invo...

Integrals Involving Trig Functions - Integration techniques In this part we are going to come across at quite a few integrals that are including trig functions and few metho

Real analysis, .find lim sup Ek and liminf Ek of Ek=[(-(1/k),1] for k odd a...

.find lim sup Ek and liminf Ek of Ek=[(-(1/k),1] for k odd and liminf Ek=[(-1,(1/k)] for k even

Describe about arithmetic and geometric series, Describe about Arithmetic a...

Describe about Arithmetic and Geometric Series? When the terms of a sequence are added together instead of separated by commas, the sequence becomes a series. You will use seri

Permutation, Permutation - It is an order arrangement of items whether...

Permutation - It is an order arrangement of items whether the order must be strictly observed Illustration Assume x, y and z be any of three items. Arrange these in all

SURFACE AREA AND VOLUMES, Metallic spheres of radii 6 centimetre, 8 centime...

Metallic spheres of radii 6 centimetre, 8 centimetre and 10 centimetres respectively are melted to form a single solid sphere. Find the radius of the resulting sphere.

Representation of a set, Normally, sets are given in the various ways A)...

Normally, sets are given in the various ways A) ROASTER FORM OR TABULAR FORM In that form, we describe all the member of the set within braces (curly brackets) and differen

Coming to grips with mathematics, Coming To Grips With Mathematics :  How ...

Coming To Grips With Mathematics :  How does a child acquire mathematical concepts? Can any concept be presented to a child at any stage in such a manner that the child gets some

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