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

Determine the matrix that performs a horizontal compression, (a) Determine ...

(a) Determine the matrix that first rotates a two-dimensional vector 180° anticlockwise, and then per- forms a horizontal compression of the resulting vector by a factor 1/2 (leavi

MATLAB, how to use matlab to reverse digits of integer using mod

how to use matlab to reverse digits of integer using mod

Perimeter and Area, A farmer has a rectangular field of length 100m and bre...

A farmer has a rectangular field of length 100m and breadth 70m. He leaves a path of 1m all along the boundary inside it. He decides to apply a manure to the remaining part of the

Logarithms, How to solve this: log x(81) = 4

How to solve this: log x(81) = 4

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

Polynomials, sum of zero of polynomial x2-2x+1is equal to sum of zero of po...

sum of zero of polynomial x2-2x+1is equal to sum of zero of polynomial x3-2x+x then find the product of all the three zero of the second polynomial

Construct the adjacency matrix and the adjacency lists, Question: Constrcut...

Question: Constrcut the adjacency matrix and the adjacency lists for the graph G below, where the weights associated with edges represent distances between nodes. If no edge is pre

Basic statistics, #questio Study A Stu...

#questio Study A Study B Study C x2 = 1.683 F = 7.357 r = .83 df = 4

Shares and dividend, what all can be the table contents for my maths projec...

what all can be the table contents for my maths project on shares and dividend

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