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 circles - common polar coordinate graphs, Example of Circles - C...

Example of Circles - Common Polar Coordinate Graphs Example: Graph r = 7, r = 4 cos θ, and r = -7 sin θ on similar axis system. Solution The very first one is a circle

How would the society be strengthened, All things considered, in a sense of...

All things considered, in a sense of ethnicity (a sense of identification with and loyalty to one's group) good or bad? is it harmful or helpful? What would be lost if Americans lo

Find the number of students side of the square, A teacher on attempting to ...

A teacher on attempting to arrange the students for mass drill in the form of a solid square found that 24 students were left over. When he increased the size of the square by one

Ratios, in a veggie mix the ratio of cups of carrots to cups of broccolie i...

in a veggie mix the ratio of cups of carrots to cups of broccolie is 4 to 5 if you made this party mix larger how many cups of carrots would be needed to mix with fo cups of brocco

Compound interest, Ask question #Minimum 100 words accMick invested $5516 i...

Ask question #Minimum 100 words accMick invested $5516 in an account at 14% compounded quarterly. Calculate the total investment after 1 years.

Operations with rational numbers, larry spends 3/4 hours twice a day walkin...

larry spends 3/4 hours twice a day walking and playing with his dog. He spends 1/6 hours twice a day feeding his dog. how much time does larry spend on his dog each day?

Draw a common graph f ( x ) = |x|, Graph f ( x ) = |x| Solution The...

Graph f ( x ) = |x| Solution There actually isn't much to in this problem outside of reminding ourselves of what absolute value is. Remember again that the absolute value f

Maths, whats 100 + 90 - 6

whats 100 + 90 - 6

How long will it take her to save $350, Each week Jaime saves $25. How long...

Each week Jaime saves $25. How long will it take her to save $350? Divide $350 by $25; 350 ÷ 25 = 14 weeks.

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