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

Trignomatry, what is the trignomatry ratio

what is the trignomatry ratio

The central limit theorem, The Central Limit Theorem  The theories was ...

The Central Limit Theorem  The theories was introduced by De Moivre and according to it; if we choose a large number of simple random samples, says from any population and find

Mensuration, if area of a rectangle is 27 sqmtr and it perimeter is 24 m fi...

if area of a rectangle is 27 sqmtr and it perimeter is 24 m find the length and breath#

Actual implicit solution, y 2 = t 2 - 3 is the actual implicit solution t...

y 2 = t 2 - 3 is the actual implicit solution to y'= t/y, y(2) = -1. At such point I will ask that you trust me that it is actually a solution to the differential equation. You w

Shortcuts, pls told the maths shortcuts

pls told the maths shortcuts

Calculus, Given f (x) =10x^3 - x^5 , find all intervals(in Interval Notatio...

Given f (x) =10x^3 - x^5 , find all intervals(in Interval Notation) of Concavity and the x-values of all Inflection Points.

Solid Mensuration, The two sides of a triangle are 17 cm and 28 cm long, an...

The two sides of a triangle are 17 cm and 28 cm long, and the length of the median drawn to the third side is equal to 19.5 cm. Find the distance from an endpoint of this median to

What was the planes average speed, A ?ight from Pittsburgh to Los Angeles t...

A ?ight from Pittsburgh to Los Angeles took 5 hours and covered 3,060 miles. What was the plane's average speed? Find out the rate at that Susan is traveling through dividing h

Pre Calculus, 5 2 ----- - ----- x-1 x+1 ------------------...

5 2 ----- - ----- x-1 x+1 -------------------- x 1 ----- + ----- x-1 x+1

Theory of numbers, show that all primes except 2, are of the form 4n-1 or 4...

show that all primes except 2, are of the form 4n-1 or 4n+1

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