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

Longer- term forecasting, Longer- Term Forecasting Moving averages, ex...

Longer- Term Forecasting Moving averages, exponential smoothing and decomposition methods tend to be utilized for short to medium term forecasting. Longer term forecasting is

POLYNOMIAL, HOW WE CAN FACTORISE 12X+7X+1

HOW WE CAN FACTORISE 12X+7X+1

Linear programming, function [x, z] = readSolution(tableau, basis)

function [x, z] = readSolution(tableau, basis)

What is the distance this car will travel in (3x - 8) hours, A car travels ...

A car travels at a rate of (4x2 - 2). What is the distance this car will travel in (3x - 8) hours? Use the formula distance = rate × time. Through substitution, distance = (4x2

Compute the quartile coefficient of skewness, By using the above data compu...

By using the above data compute the quartile coefficient of skewness Quartile coefficient of skewness = (Q3 + Q1 - 2Q2)/(Q3 + Q1)                                The positio

Example of multiplication of complex numbers, Multiply following and write ...

Multiply following and write the answers in standard form.  (a) 7 i ( -5 + 2 i )  (b) (1 - 5 i ) ( -9 + 2 i ) Solution (a) Thus all that we have to do is distribu

Value delivery, What do you mean by value delivery

What do you mean by value delivery

My daugther needs help, my daughter is having trouble with math she cant un...

my daughter is having trouble with math she cant understand why please help us

Example of a function - inflection point, 1. (a) Give an example of a funct...

1. (a) Give an example of a function, f(x), that has an inflection point at (1, 4). (b) Give an example of a function, g(x), that has a local maximum at ( -3, 3) and a local min

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