An Algebra for Pomsets

We study languages for manipulating partially ordered structures with duplicates (e.g. trees, lists). As a general framework, we consider the pomset (partially ordered multiset) datatype. We introduce an algebra for pomsets, which generalizes traditional algebras for (nested) sets, bags and lists. This paper is motivated by the study of the impact of different language primitives on the expressive power. We show that the use of partially ordered types increases the expressive power significantly. Surprisingly, it turns out that the algebra when restricted to both unordered (bags) and totally ordered (lists) intermediate types, yields the same expressive power as fixpoint logic with counting on relational databases. It therefore constitutes a rather robust class of relational queries. On the other hand, we obtain a characterization of PTIME queries on lists by considering only totally ordered types.

[1]  Rolf H. Möhring,et al.  Computationally Tractable Classes of Ordered Sets , 1989 .

[2]  David Harel,et al.  Computable Queries for Relational Data Bases , 1980, J. Comput. Syst. Sci..

[3]  Dan Suciu Bounded Fixpoints for Complex Objects , 1993 .

[4]  Moshe Y. Vardi The complexity of relational query languages (Extended Abstract) , 1982, STOC '82.

[5]  Serge Abiteboul,et al.  A rule-based language with functions and sets , 1991, TODS.

[6]  Victor Vianu,et al.  Tractable query languages for complex object databases , 1991, PODS '91.

[7]  Gabriel M. Kuper,et al.  A new approach to database logic , 1984, PODS.

[8]  Joel E. Richardson,et al.  Supporting Lists in a Data Model (A Timely Approach) , 1992, VLDB.

[9]  I. Rival Algorithms and Order , 1988 .

[10]  Hamid Pirahesh,et al.  The Magic of Duplicates and Aggregates , 1990, VLDB.

[11]  Val Tannen,et al.  Logical and Computational Aspects of Programming with Sets/Bags/Lists , 1991, ICALP.

[12]  Martin Otto,et al.  Inductive Definability with Counting on Finite Structures , 1992, CSL.

[13]  Robert E. Tarjan,et al.  Efficient Planarity Testing , 1974, JACM.

[14]  Catriel Beeri,et al.  Algebraic Optimization of Object-Oriented Query Languages , 1990, Theor. Comput. Sci..

[15]  Serge Abiteboul,et al.  Querying and Updating the File , 1993, VLDB.

[16]  Tova Milo,et al.  Towards Tractable Algebras for Bags , 1996, J. Comput. Syst. Sci..

[17]  Catriel Beeri,et al.  On the power of languages for manipulation of complex objects , 1987, VLDB 1987.

[18]  John E. Hopcroft,et al.  Linear time algorithm for isomorphism of planar graphs (Preliminary Report) , 1974, STOC '74.

[19]  Jianwen Su,et al.  On the expressive power of database queries with intermediate types , 1988, PODS '88.

[20]  Tova Milo,et al.  Calculi for Bags and their Complexity , 1993, DBPL.

[21]  Stanley B. Zdonik,et al.  Ordered Types in the AQUA Data Model , 1993, DBPL.

[22]  Saharon Shelah,et al.  Fixed-Point Extensions of First-Order Logic , 1985, FOCS.

[23]  Yuri Gurevich,et al.  Algebras of feasible functions , 1983, 24th Annual Symposium on Foundations of Computer Science (sfcs 1983).

[24]  Neil Immerman,et al.  Relational Queries Computable in Polynomial Time , 1986, Inf. Control..

[25]  Serge Abiteboul,et al.  Generic Computation and its complexity , 1991, STOC '91.

[26]  Peter Buneman,et al.  Structural Recursion as a Query Language , 1992, DBPL.

[27]  Seymour Ginsburg,et al.  Pattern matching by Rs-operations: towards a unified approach to querying sequenced data , 1992, PODS '92.

[28]  Jan Van den Bussche,et al.  The expressive power of structured values in pure OODB's , 1991, PODS 1991.

[29]  Joseph Albert,et al.  Algebraic Properties of Bag Data Types , 1991, VLDB.

[30]  Vaughan R. Pratt,et al.  The Pomset Model of Parallel Processes: Unifying the Temporal and the Spatial , 1984, Seminar on Concurrency.

[31]  David S. Johnson,et al.  Computers and Intractability: A Guide to the Theory of NP-Completeness , 1978 .

[32]  Catriel Beeri,et al.  Functional and predictive programming in OODB's , 1992, PODS '92.

[33]  Serge Abiteboul,et al.  Object identity as a query language primitive , 1989, SIGMOD '89.

[34]  Serge Abiteboul,et al.  Foundations of Databases , 1994 .

[35]  Tova Milo,et al.  Towards tractable algebras for bags , 1993, PODS '93.

[36]  Jianwen Su,et al.  Untyped sets, invention, and computable queries , 1989, PODS '89.

[37]  Jeffrey F. Naughton,et al.  On the Computation of Multidimensional Aggregates , 1996, VLDB.

[38]  Jan Van den Bussche,et al.  The expressive power structured values in pure OODB's (extended abstract) , 1991, PODS '91.

[39]  Edward L. Robertson,et al.  A query language for list-based complex objects , 1994, PODS '94.

[40]  Barry E. Jacobs,et al.  On Database Logic , 1982, JACM.

[41]  Limsoon Wong,et al.  New techniques for studying set languages, bag languages and aggregate functions , 1994, PODS '94.