2005
DOI: 10.1007/s00236-005-0162-6
|View full text |Cite
|
Sign up to set email alerts
|

On the complexity of deciding typability in the relational algebra

Abstract: Abstract.We investigate the complexity of the typability problem for the relational algebra. This problem consists of deciding, for a given relational algebra expression, whether there exists an assignment of types to variables occurring in the expression such that the expression is well-typed under the assignment. We obtain that the problem is NP-complete in general. In particular, we show that the problem becomes NP-hard due to (1) the cartesian product operator; (2) the selection operator on arbitrary sets … Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
1
1
1
1

Citation Types

0
6
0

Year Published

2005
2005
2010
2010

Publication Types

Select...
3
2

Relationship

2
3

Authors

Journals

citations
Cited by 5 publications
(6 citation statements)
references
References 4 publications
0
6
0
Order By: Relevance
“…is NP-complete for both the relational algebra [54,59] and N RC(=, drop, ×, 1) [56]. Notice that in contrast, typability for N RC(=, drop) is in polynomial time by Theorem 16.…”
Section: Type Inferencementioning
confidence: 99%
“…is NP-complete for both the relational algebra [54,59] and N RC(=, drop, ×, 1) [56]. Notice that in contrast, typability for N RC(=, drop) is in polynomial time by Theorem 16.…”
Section: Type Inferencementioning
confidence: 99%
“…The ML type-checking algorithms therefore typically run in linear time in practice [19]. The NP-hardness of type-checking in the NNRC on the other hand arises in many expressions, due to many different reasons [32]. It is therefore likely that type-checking the integrated ML-NNRC language will in practice be slower than type-checking ML.…”
Section: Discussionmentioning
confidence: 99%
“…It is already known that typability for the relational algebra is NPcomplete [31,32]. It is also well-known that the relational algebra can be simulated in the NNRC [9,34].…”
Section: Lemma 3 If ϕ Is a Type Formula And H Is A T -Valuation Suchmentioning
confidence: 99%
See 1 more Smart Citation
“…We call this variant join-like, and name it Riviera J , because the type behavior of this rule is identical to the type-level behavior of the join operator in relational algebras [15,25]. It is not common for modules or records (an exception is the Church-style calculus of [32]), but we mention it to highlight the similarities between type problems in relational calculi and in calculi with concatenation and linking.…”
Section: Asymmetric Variantsmentioning
confidence: 99%