The complexity space of partial functions: a connection between complexity analysis and denotational semantics

The study of the dual complexity space, introduced by S. Romaguera and M.P. Schellekens [Quasi-metric properties of complexity spaces, Topol. Appl. 98 (1999), pp. 311–322], constitutes a part of the interdisciplinary research on Computer Science and Topology. The relevance of this theory is given by the fact that it allows one to apply fixed point techniques of denotational semantics to complexity analysis. Motivated by this fact and with the intention of obtaining a mixed framework valid for both disciplines, a new complexity space formed by partial functions was recently introduced and studied by S. Romaguera and O. Valero [On the structure of the space of complexity partial functions, Int. J. Comput. Math. 85 (2008), pp. 631–640]. An application of the complexity space of partial functions to model certain processes that arise, in a natural way, in symbolic computation was given in the aforementioned reference. In this paper, we enter more deeply into the relationship between semantics and complexity analysis of programs. We construct an extension of the complexity space of partial functions and show that it is, at the same time, an appropriate mathematical tool for the complexity analysis of algorithms and for the validation of recursive definitions of programs. As applications of our complexity framework, we show the correctness of the denotational specification of the factorial function and give an alternative formal proof of the asymptotic upper bound for the average case analysis of Quicksort.

[1]  Philippe Flajolet,et al.  Analytic Analysis of Algorithms , 1992, ICALP.

[2]  Salvador Romaguera,et al.  Sequence spaces and asymmetric norms in the theory of computational complexity , 2002 .

[3]  Salvador Romaguera,et al.  Quasi-metric properties of complexity spaces , 1999 .

[4]  J. W. de Bakker,et al.  A Metric Approach to Control Flow Semantics , 1996 .

[5]  Salvador Romaguera,et al.  On the structure of the space of complexity partial functions , 2008, Int. J. Comput. Math..

[6]  E. Allen Emerson,et al.  The Complexity of Tree Automata and Logics of Programs , 1999, SIAM J. Comput..

[7]  Carl A. Gunter,et al.  Semantic Domains , 1991, Handbook of Theoretical Computer Science, Volume B: Formal Models and Sematics.

[8]  Brian A. Davey,et al.  An Introduction to Lattices and Order , 1989 .

[9]  Pascal Hitzler,et al.  Generalized Distance Functions in the Theory of Computation , 2010, Comput. J..

[10]  Óscar Valero,et al.  Computing complexity distances between algorithms , 2003, Kybernetika.

[11]  Salvador Romaguera,et al.  Asymptotic Complexity of Algorithms via the Nonsymmetric Hausdorff Distance , 2006 .

[12]  Wolfgang Thomas,et al.  Handbook of Theoretical Computer Science, Volume B: Formal Models and Semantics , 1990 .

[13]  Klaus Keimel,et al.  Semantic Domains for Combining Probability and Non-Determinism , 2005, Electronic Notes in Theoretical Computer Science.

[14]  Erik P. de Vink,et al.  Metric Semantics and Full Abstractness for Action Refinement and Probabilistic Choice , 2001, MFCSIT.

[15]  Erik P. de Vink,et al.  Control flow semantics , 1996 .

[16]  Salvador Romaguera,et al.  Denotational semantics for programming languages, balanced quasi-metrics and fixed points , 2008, Int. J. Comput. Math..

[17]  Robert D. Tennent,et al.  The denotational semantics of programming languages , 1976, CACM.

[18]  L. Sandgren On convex cones , 1954 .

[19]  Hans-Peter A. Künzi,et al.  Nonsymmetric Distances and Their Associated Topologies: About the Origins of Basic Ideas in the Area of Asymmetric Topology , 2001 .

[20]  Philippe Flajolet,et al.  Mellin transforms and asymptotics , 1994, Acta Informatica.

[21]  Michel P. Schellekens,et al.  Norm-weightable Riesz spaces and the dual complexity space , 2002, Electron. Notes Theor. Comput. Sci..

[22]  Michel P. Schellekens,et al.  The Smyth completion: a common foundation for denotational semantics and complexity analysis , 1995, MFPS.

[23]  Fletcher Quasi-Uniform Spaces , 1982 .

[24]  Salvador Romaguera,et al.  The quasi-metric of complexity convergence , 2000 .

[25]  Salvador Romaguera,et al.  Duality and quasi-normability for complexity spaces , 2002 .

[26]  Salvador Romaguera,et al.  The supremum asymmetric norm on sequence algebras: a general framework to measure complexity distances , 2002, Electron. Notes Theor. Comput. Sci..

[27]  Jesús Medina,et al.  A Fixed-Point Theorem for Multi-valued Functions with an Application to Multilattice-Based Logic Programming , 2007, WILF.

[28]  Óscar Valero,et al.  The complexity space of a valued linearly ordered set , 2002, Electron. Notes Theor. Comput. Sci..

[29]  Umberto Straccia,et al.  On Fixed-Points of Multivalued Functions on Complete Lattices and Their Application to Generalized Logic Programs , 2008, SIAM J. Comput..

[30]  J. Bakker,et al.  Denotational models for programming lan-guages: Applications of banachs fixed point theorem , 1998 .

[31]  Klaus Keimel,et al.  Semantic Domains for Combining Probability and Non-Determinism , 2005, Electron. Notes Theor. Comput. Sci..