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

Trig/cosine/sine rule etc, #questiThe elevation of a telecommunication mast...

#questiThe elevation of a telecommunication mast from two points, one due North of the tower and the other South of it are 21.2 degrees and 24.3 degrees respectively, and the two p

The formal algorithm in maths, When do you think you should introduce word ...

When do you think you should introduce word problems-before children master the formal algorithm, or after? What are your reasons for your choice? In any case, no textbook can s

Simple interest, Three payments of $2000 (originally due six months ago, to...

Three payments of $2000 (originally due six months ago, today, and six months from now) have been renegotiated to two payments: $3000 one month from now and a second payment due in

Which of the subsequent terms does not describe the number 9, Which of the ...

Which of the subsequent terms does NOT describe the number 9? Nine is NOT prime since it has 3 factors; 1, 3, and 9. Prime numbers have only 2 factors.

Impediments in time series analysis, Impediments in time series analysis ...

Impediments in time series analysis Accuracy of data in reflecting a) Drastic changes for illustration in the advent of a major competitor, period of war or unexpected chan

Define natural numbers, Q. Define natural numbers Ans. The natural...

Q. Define natural numbers Ans. The natural numbers (also called the counting numbers) are the numbers that you "naturally" use for counting: 1,2,3,4,... The set of n

Harmonic mean, If a, b and c are in harmonic progression with b as th...

If a, b and c are in harmonic progression with b as their harmonic mean then, b  = This is obtained as follows. Since a, b and c are 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