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

Example of developing an understanding, In class 1, the teacher had written...

In class 1, the teacher had written down the digits 0,1, ...., 9 on the board. Then she made all the children recite the corresponding number names. Finally, she made them write th

Statistics, How many 4 digit numbers can be formed using the numbers: 1 – 7...

How many 4 digit numbers can be formed using the numbers: 1 – 7. Repeated numbers CAN NOT be used

Four is added to the quantity two minus the sum of negative, Four is added ...

Four is added to the quantity two minus the sum of negative seven and six. This answer is then multiplied through three. What is the result? This problem translates to the expr

Algebra, simplify mn+mp+nq+pq /n+p

simplify mn+mp+nq+pq /n+p

difference between two sample means (large sample), Testing The Difference...

Testing The Difference Between Two Sample Means (Large Samples) A large sample is defined as one which have 30 or more items as n≥30 whereas n is the sample size In a busine

Partial fraction decomposition - integration techniques, Partial Fraction D...

Partial Fraction Decomposition The procedure of taking a rational expression and splitting down it into simpler rational expressions which we can add or subtract to get the ori

Round 14.851 to the nearest tenth, Round 14.851 to the nearest tenth? T...

Round 14.851 to the nearest tenth? The tenths place is the ?rst number to the right of the decimal. Here the number 8 is in the tenths place. To decide whether to round up or

Create a guessing game for children to teaching maths, E1) Create a guessin...

E1) Create a guessing game for children of Class 2, to familiarise them with the concept of a time interval E2) How could you use group dancing to teach concepts of geometry? Th

Calculus, what is the derivatives of y=u/5+7 and u=5x-35 using the chain ru...

what is the derivatives of y=u/5+7 and u=5x-35 using the chain rule?

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