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

Mathematical methods of economic analysis, I need answers for these 10 exam...

I need answers for these 10 exam questions: 1.Input-output (Leontief) model: main assumptions and construction. Definition of productivity. Necessary condition of productivity of i

SIMPLE INTEREST, A payday loan company charges a $95 fee for a $500 payday ...

A payday loan company charges a $95 fee for a $500 payday loan that will be repaid in 11 days. Treating the fee as interest paid, what is the equivalent annual interest rate?

Three times the larger of the two numbers, If three times the larger of the...

If three times the larger of the two numbers is divided by the smaller, then the quotient is 4 and remainder is 5. If 6 times the smaller is divided by the larger, the quotient is

#mathematics induction, how many numbers must be selected from the set A={1...

how many numbers must be selected from the set A={1, 3, 5, 7, 9, 11, 13, 15}to guarantee that at least one pair of these numbers add up to16? Explain and justify your answer

Hours, jeff left hartford at 2:15 pm and arrived in boston at 4:45 pm how l...

jeff left hartford at 2:15 pm and arrived in boston at 4:45 pm how long did the drive take him?

Solve factors for given equations, 1/a+b+x  =1/a+1/b+1/x    a+b ≠ 0 ...

1/a+b+x  =1/a+1/b+1/x    a+b ≠ 0 Ans: 1/a+b+x  =1/a+1/b+1/x => 1/a+b+x -1/x = +1/a +1/b ⇒  x - ( a + b + x )/ x ( a + b + x )   = + a + b/ ab ⇒

Hasse diagram, The digraph D for a relation R on V = {1, 2, 3, 4} is shown ...

The digraph D for a relation R on V = {1, 2, 3, 4} is shown below (a) show that (V,R) is a poset. (b) Draw its Hasse diagram. (c) Give a total order that have R.

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