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

High self-esteem helps learning-how do children learn?, High Self-esteem He...

High Self-esteem Helps Learning :  Consider Ajay, a student of Class 2. He is constantly told by his irritated father, "How stupid you are! You don't even understand this! Even yo

Show that the angles subtended at the centre , A circle touches the sides o...

A circle touches the sides of a quadrilateral ABCD at P, Q, R and S respectively. Show that the angles subtended at the centre by a pair of opposite sides are supplementary.

Prime Ideals, Given a standard 2x3 matrix show the ideal formed by the 2x2 ...

Given a standard 2x3 matrix show the ideal formed by the 2x2 minors is Prime.

Theorem, #question if two angles of a triangle are unequal in measure then ...

#question if two angles of a triangle are unequal in measure then the side opposite to greater angle is longer than the side opposite to the smaller angle

Prove gcd value, Let a, b, c 2 Z + . (a) Prove that if a|b, then ac|bc f...

Let a, b, c 2 Z + . (a) Prove that if a|b, then ac|bc for all c. (b) If a|bc, can you conclude that either a|b or a|c? Justify your answer with a proof or a counter example.

Steel bar to make a hard surface, Take the carburizing of a steel bar to ma...

Take the carburizing of a steel bar to make a hard surface. To obtain the desired hardness, we require to control the diffusion of carbon into the surface and the phases obtained d

Find the exact points and factorise , Consider the function f(x) = x 2 - 2...

Consider the function f(x) = x 2 - 2x - 1. (a) Factorise f(x) exactly. (b) Find the exact points (x and y coordinates required) where the graph of y = f(x) cuts the x and y-

Numertic methods, solve by factorization method; 10x-6y-3z=100, -6x+10y-5z=...

solve by factorization method; 10x-6y-3z=100, -6x+10y-5z=100, -3x-5y+10z=100

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