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

Area under curve, w/ You could use this sample code to test your C function...

w/ You could use this sample code to test your C functions // Please make appropriate changes to use this for C++. // Following main function contains 3 representative test cases

Numerical analysis and computer techniques, write a fortan programme to gen...

write a fortan programme to generate prime number between 1 to 100

Volume., what is the volume of new ipad pro box

what is the volume of new ipad pro box

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

What is unitary method, Explanation of  Unitary Method Unitary Method k...

Explanation of  Unitary Method Unitary Method keeps of following two steps:-      Step 1 involves find the value of one unit.      Step 2 involves find the value of requi

Binomial mathematical properties, Binomial Mathematical Properties 1. ...

Binomial Mathematical Properties 1. The expected or mean value = n × p = np Whereas; n = Sample Size p = Probability of success 2. The variance = npq Whereas; q =

Solving algebraic word problems, Solving Algebraic Word Problems: What...

Solving Algebraic Word Problems: What are the capacities of two water storage tanks in a nuclear facility if one holds 9 gallons less than three times another, and their whole

matlab, how to solve simplex method using matlab

how to solve simplex method using matlab?

Solving trig equations, Solving Trig Equations : Here we will discuss on s...

Solving Trig Equations : Here we will discuss on solving trig equations. It is something which you will be asked to do on a fairly regular basis in my class. Let's just see the

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