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

Interpolation and extrapolation, Interpolation is a method of s...

Interpolation is a method of statistical estimation and the word literally means 'making insertions'. Let us consider a well-known situation whi

two women may stand behind each othe, How many ways can six men and three ...

How many ways can six men and three women form a line if no two women may stand behind each other?

One integer is four times other what is the value of lesser, One integer is...

One integer is four times other. The sum of the integers is 5. What is the value of the lesser integer? Let x = the lesser integer and now let y = the greater integer. The ?rst

Differential equations and group methods, solve the differential equation ...

solve the differential equation dy/dx=f(y)x^n+g(y)x^m by finding a one-parameter group leaving it invariant

Unit Rates, I need help on how to do real word problm with unit rates.

I need help on how to do real word problm with unit rates.

What is multiplying fractions, What is Multiplying Fractions ? The rule...

What is Multiplying Fractions ? The rule for multiplying fractions is to "multiply across": Multiply the numerators to get the numerator of the answer. Multiply the den

Algebra, how to solve algebra

how to solve algebra

Compute the derivative, Write an octave program that will take a set of poi...

Write an octave program that will take a set of points {x k , f k } representing a function and compute the derivative at the same points x k using 1. 2-point forward di erence

Find the values of k, If the vertices of a triangle are (1, k), (4, -3), (-...

If the vertices of a triangle are (1, k), (4, -3), (-9, 7) and its area is 15 sq units, find the value(s) of k..

Find the value a2 + ß2 and (a - ß)2, If  α,β are the zeros of the polynom...

If  α,β are the zeros of the polynomial 2x 2 - 4x + 5 find the value of a) α 2 + β 2   b) (α - β) 2 . Ans : p (x) = 2 x 2 - 4 x + 5           (Ans: a) -1 , b) -6) α + β =

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