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

Calculate expected average time , A car was machine washes every car in 5 m...

A car was machine washes every car in 5 minutes accurately. It has been calculated that customers will arrive as per to a Poisson distribution at an average of 8 per hour. Calculat

Range, identify the range of h(x)=2x+1

identify the range of h(x)=2x+1

#calculus, Ask question #divergent gradient u vector#

Ask question #divergent gradient u vector#

Triangle treat, what letters to fill in the boxes

what letters to fill in the boxes

Prove, Let Xn be a sequence of distinct real numbers. Defi ne E = {L : L is...

Let Xn be a sequence of distinct real numbers. Defi ne E = {L : L is a subsequential limit of Xn}. Prove E is closed.

External forces, It is the catch all force. If there are some other forces ...

It is the catch all force. If there are some other forces which we decide we need to act on our object we lump them in now and call this good. We classically call F(t) the forcing

Calculate log equation, Calculate log equation: Calculate log 10 2 - ...

Calculate log equation: Calculate log 10 2 - log 10 3. Solution: Rule 2. log 10   (A/B): log 10   A - log 10   B log 10   2 - log 10   3 = log 10   (2/3) =

Objectives of learning to count, Objectives :  After studying this unit, y...

Objectives :  After studying this unit, you should be able to : 1.   explain the processes involved in counting; 2.   explain why the ability to recite number names is no in

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