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

Mathematical concepts and ideas , These experiences should be related to th...

These experiences should be related to the mathematical concepts and ideas that we teach them. Only then will these ideas appear relevant to the children, and be absorbed by them

Lorie, A bourbon that is 51 proof is 25.5% alcohol by volume while one that...

A bourbon that is 51 proof is 25.5% alcohol by volume while one that is 82 proof is 41% alcohol. How many liters of 51 proof bourbon must be mixed with 1.0 liter of 82 proof bourbo

Equation of line which perpendicular to the given line, Perpendicular to th...

Perpendicular to the line given by 10 y + 3x= -2 For this part we desire the line to be perpendicular to 10 y + 3x= -2 & so we know we can determine the new slope as follows,

Describe the types of triangles, Describe the Types of triangles ? Tria...

Describe the Types of triangles ? Triangles can be classified according to the lengths of the sides or the measures of the angles. 1. Naming triangles by sides An

Determine the mass of the hemisphere, Question 1. Use cylindrical coordinat...

Question 1. Use cylindrical coordinates to nd the mass of the solid of density e z which lies in the closed region  Question 2. The density of a hemisphere of radius a (y 

Estimate percent of the original price will the customer pay, Bikes are on ...

Bikes are on sale for 30% off the original price. What percent of the original price will the customer pay if he gets the bike at the sale price? The original price of the bike

Develop a linear algebraic equation, Introduction: "Mathematical liter...

Introduction: "Mathematical literacy is an individual's capacity to identify and understand the role that mathematics plays in the world, to make well-founded judgments, and t

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