![]() |
Complexity of Various Problems in Data Integration, Sharing, and ExchangeThis page is under construction.your comments and suggestions are welcome by yuana AT cs DOT toronto DOT edu |
![]() |
Query Containment | ||
---|---|---|
Setting | Complexity | References |
Data: Relational databases. Query: Conjunctive queries. Problem: is q contained in q'? |
NP-complete. | [CM77] |
Data: Relational databases. Query: Conjunctive queries with inequalities. Problem: is q contained in q'? |
∏2p-complete. | [Klu88] |
Data: Relational databases. Query: relational expressions with union and difference operators. Problem: is q contained in q'? |
♠ | [SY80] |
Data: Relational databases. Query: Recursive and nonrecursive Datalog programs. Problem: is q contained in q'? |
♠ | [CV92] |
Data: DLR (with regular expressions) Description Logics. Query: nonrecursive Datalog programs over arbitrary DLR concept and role expressions. Problem: is q contained in q'? |
EXPTIME-complete. (logical implication in DLR with r.e. is EXPTIME-hard.) Undecidable if queries contain inequalities. |
[CGL98] |
Answering Queries Using Views | ||
---|---|---|
Setting | Complexity | References |
Data: DLR description logic. Query: nonrecursive datalog program. View: defined as queries. Problem: decide whether d=(d1,...,dn) is in the answers of a query if only view extensions are available. |
coNP-complete under closed domain assumption. EXPTIME-hard and can be done in 2EXPTIME under the open domain assumption. EXPTIME-complete for sound views and simple queries. | [CGL99] |
Rewriting Queries Using Views | ||
---|---|---|
Setting | Complexity | References |
Data: ALCNR description logic. Query: concept queries. View: concept queries or conjunctive queries over core-CLASSIC terminoloiges. Problem: maximally contained query rewriting. |
PTIME for concept queries and views over core-CLASSIC terminologies. | [BLR97] |
Data: Description logic TBox. Problem: Rewrite a concept description into an equivalent concept description with minimal length. |
NP-complete for FL0, ALN, and ALE. PSPACE-complete for ALC. | [BKM00] |
Data Exchange | ||
---|---|---|
Setting | Complexity | References |
Source: relational. Target: relational. Mapping: source-to-target dependencies (TGDs). Constraits: target constraints (TGDs and EGDs). Problem: universal solution and certain answers. |
polynomial time for computing the universal solution and answering
conjunctive queries.
coNP-complete for computing certain answers of conjunctive queries with at least two inequalities. | [FKML03] |
Source: XML (DTD). Target: XML (DTD). Mapping: source-to-target dependencies (between tree formulas). Constraints: DTD specifications. Query:conjunctive tree queries with descendant and union. Problem: consistency and certain answers. |
EXPTIME-complete for consistency. PTIME for consistency of nested-relational. PTIME or coNP-complete for computing certain answers depending on regular expressions used in target DTDs. | [AL05] |