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

Convert the points into cartesian and polar coordinates, Convert each of th...

Convert each of the following points into the specified coordinate system.  (a) (-4, 2 Π /3) into Cartesian coordinates. (b) (-1,-1) into polar coordinates.  Solution

Circles, examples of construction of excircles

examples of construction of excircles

Symmetric and anti-symmetric relation on a set, 1. Let A = {1,2, 3,..., n} ...

1. Let A = {1,2, 3,..., n} (a) How many relations on A are both symmetric and anti-symmetric? (b) If R is a relation on A that is anti-symmetric, what is the maximum number o

Multiply two radicals, Multiply following.  Assume that x is positive. ...

Multiply following.  Assume that x is positive.                  (3√x-√y)(2√x-5√y)   Solution                 (3√x-√y)(2√x-5√y)          =6√x 2 -15√x√y-2√x√y+5√y

Estimating sums, round to the nearest ten to estimate , 422+296

round to the nearest ten to estimate , 422+296

What is the cost to generate, The production costs per week for generating ...

The production costs per week for generating x widgets is given by, C ( x ) = 500 + 350 x - 0.09 x 2 ,         0 ≤ x ≤ 1000 Answer following questions.  (a) What is the c

Basic mathematics, I need help with my homework, I am to the edge right now...

I need help with my homework, I am to the edge right now with this w=5pq/2

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