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

Fenrir chain, Fenrir the wolf is bound by a magical chain. The chain is an ...

Fenrir the wolf is bound by a magical chain. The chain is an endless piece madr up of 30 links.Originally forged by 6 pieces , each made up of 5 links. It costs 2 silver coins to c

Fractions, how do you divide fractions?

how do you divide fractions?

Find the length of chord ab, If PA and PB are tangents to a circle from an ...

If PA and PB are tangents to a circle from an outside point P, such that PA=10cm and ∠APB=60 o . Find the length of chord AB.

Accumulated amount , $26,000 is spended for two years. In the first year it...

$26,000 is spended for two years. In the first year it gets interest at 8.3% p.a. compounded semi annually. In the same year the rate of interest changes to 7.5% p.a. compounded da

Permatuation and combination problem, A student is allowed to select at mos...

A student is allowed to select at most n-blocks from a collection of (2n + 1) books. If the total number of ways in which he can select a book is 63, find the value of n. Solution

Draw a lattice hierarchy for dimension, New England University maintains a ...

New England University maintains a data warehouse that stores information about students, courses, and instructors. Members of the university's Board of Trustees are very much inte

Miss, how do you find the average of a number

how do you find the average of a number

Illustration of simpson rule, By using n = 4 and all three rules to approxi...

By using n = 4 and all three rules to approximate the value of the following integral. Solution Very firstly, for reference purposes, Maple provides the following valu

What percent of the figure below is shaded, What percent of the figure belo...

What percent of the figure below is shaded? Break the rectangle into eighths as shown below. The shaded part is 6/8 or 3/4 ; 3/4 is 75%.

Partial Differential Equation, Determine the minimum capacity C of a Capaci...

Determine the minimum capacity C of a Capacitor given that: C =(ax/(x-a))+(xy/(y-b))+(yb/(b-y)) given that "a" and "b" are fixed values and "x" and "y" vary independently such 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