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

Ronding off numbers, how to round off numbers to the nearest tens and to th...

how to round off numbers to the nearest tens and to the nearest hundred

Geometry, calculate the area of a trapezoid with height 8cm base 18cm and 9...

calculate the area of a trapezoid with height 8cm base 18cm and 9cm

Siquence aned series, if 4,a and 16 are in the geometric sequence. Find the...

if 4,a and 16 are in the geometric sequence. Find the value

How to creates factor by substitution, How to creates Factor by Substitutio...

How to creates Factor by Substitution ? Can you factor this polynomial? x 2 + 3x + 2 (For this tutorial, I'm going to assume that you know how to do some basic factorin

Find a minimum cost spanning arborescence rooted, Find a minimum cost spann...

Find a minimum cost spanning arborescence rooted at r for the digraph shown below, using the final algorithm shown in class.  Please show your work, and also give a final diagram w

Calculate probability, The following table contains some information about...

The following table contains some information about the model used. Assume the probabilities given by the model are those of being a good writer. Variable

Compare and contrast african immigrants, Compare and contrast African immig...

Compare and contrast African immigrants with our immigrant groups? How are they different? What are the implications of these differences for their adjustment to the larger society

Gauss-siedel or newton-rapson method, A one-line diagram of a simple three-...

A one-line diagram of a simple three-bus power system is shown in Figure 1 with generation at bus 1. The magnitude of voltage at bus 1 is adjusted to 1.05 per unit. The scheduled l

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

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