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

Conic sections, The locus of the midpoint of the chords of an ellipse which...

The locus of the midpoint of the chords of an ellipse which are drawn through an end of minor axis is called

What is converse- inverse and contrapositive, What is Converse, Inverse, an...

What is Converse, Inverse, and Contrapositive In geometry, many declarations are written in conditional form "If ...., then....." For Example: "If two angles are right angles,

Two circles touch each other externally, Two circles touch each other exter...

Two circles touch each other externally: Given: Two circles with respective centres C1 and C2 touch each other externaly at the point P. T is any point on the common tangent

Estimate how much should every friend pay, A group of ?ve friends gone out ...

A group of ?ve friends gone out to lunch. The total bill for the lunch was $53.75. Their meals all cost about the similar, so they needed to split the bill evenly. Without consider

Solving an equation using multiplication and division, Solving an equation ...

Solving an equation using Multiplication and Division       A variable is a symbol that represents a number. Usually we use the letters like n , t , or x for variables. For

Conditional statement, if two lines in s plane never intersect then they ar...

if two lines in s plane never intersect then they are parallel

Find out the total number people and the total number car, A national park ...

A national park remains track of how many people per car enter the park. Today, 57 cars had 4 people, 61 cars had 2 people, 9 cars had 1 person, and 5 cars had 5 people. What is th

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