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

Determine the conditional probability, Consider a class of 55 students. The...

Consider a class of 55 students. The student names are placed in a hat and 3 names are randomly drawn without replacement. a) If the first person drawn was named the class presi

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 ?

speed of the truck , A man travels 600km partly by train and partly by tru...

A man travels 600km partly by train and partly by truck. If he  covers 120km by train and the rest by truck, it takes him eight hours. But, if he travels 200km by train and the res

Shoppers` stop, 3. How are Indian customers visiting Shoppers’ Stop any dif...

3. How are Indian customers visiting Shoppers’ Stop any different from customers of developed western countries? 4. How should Shoppers’ Stop develop its demand forecasts?

What is the larger dimension in inches of the frame, Jessica has a picture ...

Jessica has a picture in a frame with a total area of 288 in2. The dimension of the picture without the frame is 12 in through 14 in. What is the larger dimension, in inches, of th

Example of factor by grouping, Factor by grouping each of the following. ...

Factor by grouping each of the following. 3x 2 - 2x + 12x - 8 Solution           3x 2 - 2x + 12x - 8 In this case we collect the first two terms & the final two te

Variance-measure of central tendency, Variance Square of the standard...

Variance Square of the standard deviation is termed as variance. The semi inter-quartile range - It is a measure of dispersion which includes the use of quartile. A q

Using substitution solving polynomial equations, Using Substitution Solving...

Using Substitution Solving Polynomial Equations ? Solve : (x 3 + 4) 2 - 15 (x 3 + 4) + 36 = 0. You might be tempted to multiply everything out and factor. However, there

Solution to an initial value problem, S olve the subsequent IVP. dv/dt =...

S olve the subsequent IVP. dv/dt = 9.8 - 0.196v;               v(0) = 48 Solution To determine the solution to an Initial Value Problem we should first determine the gen

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