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

What is slope of a line, What is Slope of a Line ? A line can have a "...

What is Slope of a Line ? A line can have a "steep" slope or a "gradual" slope. slope = rise/run The "rise" is the distance going up or down. The "run" is the distance goin

Euler equations with an auxiliarty condition - shortest path, 1. Finding th...

1. Finding the shortest path btween any two points on the surface of a sphere but use the method of the euler equations with an auxiliarty condition imposed? Question2:

#titl., class 10 Q.trigonometric formula of 1 term

class 10 Q.trigonometric formula of 1 term

Build an equation for a hyperboloid of two sheets, 1. Build an equation for...

1. Build an equation for a hyperboloid of two sheets with the following properties: a. The central axis of the hyperboloid is the y-axis b. The two sheets are 4 units apart, an

Mutually exclusive events, Mutually Exclusive Events A set of events i...

Mutually Exclusive Events A set of events is said to be mutually exclusive if the occurrence of any one of the events precludes the occurrence of any of the other events for i

Solve out the linear equations, Solve out each of the following equations. ...

Solve out each of the following equations.                3( x + 5)= 2 ( -6 - x ) - 2x Solution In the given problems we will explained in detail the first problem and t

Linear programming , use the simplex method to solve the following lp probl...

use the simplex method to solve the following lp problem. max z = 107x1 + x2 + 2x3 subject to 14x1 + x2 - 6x3 + 3x4 = 7 16x1 + x2 - 6x3 3x1 - x2 - x3 x1,x2,x3,x4 > = 0

Geometric , a part of a line with two end points.

a part of a line with two end points.

Adding equally sized groups-prerequisites for multiplication, Adding Equall...

Adding Equally Sized Groups:  Once children have had enough practice of making groups of equal size, you can ask them to add some of these equal groups. They can now begin to atte

Example of substitution method of linear equations, Describe some Example o...

Describe some Example of substitution method of Linear Equations with solution.

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