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

Design a diagram by transformation, On a graph, design a diagram by transfo...

On a graph, design a diagram by transformation the given graph of f (x), -2 ≤ x ≤ 2. Briefly Define the other graphs in terms of f (x) and specify their domains. The diagram n

Euler equations, Euler Equations - Series Solutions to Differential Equ...

Euler Equations - Series Solutions to Differential Equations In this section we require to look for solutions to, ax 2 y′′ + bxy′ + cy = 0 around x0  = 0. These ki

Find the probability of having 53 sundays in leap year , Find the probabili...

Find the probability of having 53 Sundays in (i) a leap year                           (ii) a non leap year       (Ans:2/7 , 1/7 ) Ans:          An ordinary year has 365 da

What is the vertex form for a quadratic equation, What is the Vertex Form f...

What is the Vertex Form for a Quadratic Equation ? The vertex form for a quadratic function is as follows: f(x) = a(x - h) 2 + k The graph of this function Is a parabola whos

The shortest distance among the line y-x=1 and curve x=y^2, Any point on pa...

Any point on parabola, (k 2 ,k) Perpendicular distance formula: D=(k-k 2 -1)/2 1/2 Differentiating and putting =0 1-2k=0 k=1/2 Therefore the point is (1/4, 1/2) D=3/(32 1/2

Determine how many player play foot ball, Determine How many player play fo...

Determine How many player play foot ball? In a group of athletic teams in a specific institute, 21 players are in the basket ball team, 26 players in the hockey team, 29 player

Determine the property of partial ordered relation, Determine the property ...

Determine the property of Partial ordered relation Question: Partial ordered relation is transitive, reflexive and  Answer: antisymmetric

What is the area covered through the motion of the fan, The arm of a ceilin...

The arm of a ceiling fan measures a length of 25 in. What is the area covered through the motion of the fan blades while turned on? (π = 3.14) The ceiling fan follows a circula

how many of the original vectors, We have claimed that a randomly generate...

We have claimed that a randomly generated point lies on the equator of the sphere  independent of where we pick the North Pole.  To test this claim randomly generate ten  vectors i

Rectilinear figures, what are rctilinear figures ? types of rectilinear fig...

what are rctilinear figures ? types of rectilinear figures and their propertiees.

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