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

Xy Algebra, Find the values of x and y

Find the values of x and y

Determine the properties and query are definable in datalog, We now focus o...

We now focus on the use of Datalog for defining properties and queries m graphs. (a) Suppose that P is some property of graphs definable in Datalog. Show drat P is preserved und

Generalized least squares regression, a. Estimate the following model,  C t...

a. Estimate the following model,  C t   =  β 0   +  β 1 * DI t +  ε t             Where C t = Aggregate Consumption Expenditure in Australia, quarterly data for the per

What is a percentage, Q. What is a percentage? Ans. Percent  mean...

Q. What is a percentage? Ans. Percent  means "per hundred", or "out of 100". A percentage can be written as a ratio, or fraction, where the denominator (bottom) is 100.

What is the probability of getting a royal flush, Q. What is the probabilit...

Q. What is the probability of getting a Royal Flush? Ans. Five cards are picked from a standard deck of 52 cards. How many different hands of five cards are possible? What

Y=Theea[sin(inTheeta)+cos(inTheeta)], Y=θ[SIN(INθ)+COS(INθ)],THEN FIND dy÷d...

Y=θ[SIN(INθ)+COS(INθ)],THEN FIND dy÷dθ. Solution)  Y=θ[SIN(INθ)+COS(INθ)] applying u.v rule then dy÷dθ={[ SIN(INθ)+COS(INθ) ] dθ÷dθ }+ {θ[ d÷dθ{SIN(INθ)+COS(INθ) ] }    => SI

Constructions, Draw a line segment AB of length 4.4cm. Taking A as centre, ...

Draw a line segment AB of length 4.4cm. Taking A as centre, draw a circle of radius. 2cm and taking B as centre, draw another circle of radius 2.2cm. Construct tangents to each cir

Statistical models in simulation, Players and spectators enter a ballpark a...

Players and spectators enter a ballpark according to independent Poisson processes having respective rates 5 and 20 per hour. Starting at an arbitrary time, compute the probability

Partial fractions - integration techniques, Partial Fractions - Integration...

Partial Fractions - Integration techniques In this part we are going to take a look at integrals of rational expressions of polynomials and again let's start this section out w

3/8:5/9, how do I change this ratio to a fraction

how do I change this ratio to a fraction

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