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

Surface area with polar coordinates, Surface Area with Polar Coordinates ...

Surface Area with Polar Coordinates We will be searching for at surface area in polar coordinates in this part.  Note though that all we're going to do is illustrate the formu

Calculus, Determine the linear approximation for f(x)= sin delta at delta =...

Determine the linear approximation for f(x)= sin delta at delta =0

Bar charts, I''m supposed to be writing a critique for my maths project whe...

I''m supposed to be writing a critique for my maths project where i compare the prices for different holidays. i don''t know what to write for a critique though, any tips on what w

Divide by 1-digit numbers, which experession can be used to check the quoti...

which experession can be used to check the quotient 646 divided by 3

Geometry, two sides of an equilateral triangle have lengths 3x-1 and 3x-1. ...

two sides of an equilateral triangle have lengths 3x-1 and 3x-1. Which of 27-x or 2x-4 could be the length of the third side?

Determine the angle, In parallelogram ABCD, m∠A = 3x + 10 and m∠D = 2x + 30...

In parallelogram ABCD, m∠A = 3x + 10 and m∠D = 2x + 30, Determine the m∠A. a. 70° b. 40° c. 86° d. 94° d. Adjacent angles in a parallelogram are supplementary. ∠A a

Permuation and combination, how many words can be formed from letters of wo...

how many words can be formed from letters of word daughter such that word contain 2vowles and 3consonant

Geometry, how you know that your first quadrilateral is an isosceles trapez...

how you know that your first quadrilateral is an isosceles trapezoid

Alcohol Solutions, If you have 60% alcohol and wish to dilute with water to...

If you have 60% alcohol and wish to dilute with water to make 12 liters 40% alcohol, How many liters of water should you add?

.fractions, what is the difference between North America''s part of the tot...

what is the difference between North America''s part of the total population and Africa''s part

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