Abstract
In 1994, S.G. Matthews introduced the notion of partial metric space in order to obtain a suitable mathematical tool for program verification (Ann. N.Y. Acad. Sci. 728:183–197, 1994). He gave an application of this new structure to parallel computing by means of a partial metric version of the celebrated Banach fixed point theorem (Theor. Comput. Sci. 151:195–205, 1995). Later on, M.P. Schellekens introduced the theory of complexity (quasi-metric) spaces as a part of the development of a topological foundation for the asymptotic complexity analysis of programs and algorithms (Electron. Notes Theor. Comput. Sci. 1:211–232, 1995). The applicability of this theory to the asymptotic complexity analysis of Divide and Conquer algorithms was also illustrated by Schellekens. In particular, he gave a new proof, based on the use of the aforenamed Banach fixed point theorem, of the well-known fact that Mergesort algorithm has optimal asymptotic average running time of computing. In this paper, motivated by the utility of partial metrics in Computer Science, we discuss whether the Matthews fixed point theorem is a suitable tool to analyze the asymptotic complexity of algorithms in the spirit of Schellekens. Specifically, we show that a slight modification of the well-known Baire partial metric on the set of all words over an alphabet constitutes an appropriate tool to carry out the asymptotic complexity analysis of algorithms via fixed point methods without the need for assuming the convergence condition inherent to the definition of the complexity space in the Schellekens framework. Finally, in order to illustrate and to validate the developed theory we apply our results to analyze the asymptotic complexity of Quicksort, Mergesort and Largesort algorithms. Concretely we retrieve through our new approach the well-known facts that the running time of computing of Quicksort (worst case behaviour), Mergesort and Largesort (average case behaviour) are in the complexity classes \(\mathcal{O}(n^{2})\), \(\mathcal{O}(n\log_{2}(n))\) and \(\mathcal{O}(2(n-1)-\log_{2}(n))\), respectively.
Similar content being viewed by others
References
Brassard, G., Bratley, P.: Algorithms: Theory and Practice. Prentice Hall, New Jersey (1988)
Cerdà-Uguet, M.A., Schellekens, M.P., Valero, O.: The Baire partial quasi-metric space: a mathematical tool for asymptotic complexity analysis in computer science. Online expanded version, arXiv:1009.6105 [cs.CC]
Cormen, T.H., Leiserson, C.E., Rivest, R.L.: Introduction to Algorithms. MIT Press, New York (1990)
Cull, P., Flahive, M., Robson, R.: Difference Equations: From Rabbits to Chaos. Springer, New York (2005)
Davey, B.A., Priestley, H.A.: Introduction to Lattices and Order. Cambridge University Press, Cambridge (1990)
Künzi, H.P.A.: Nonsymmetric distances and their associated topologies: about the origins of basic ideas in the area of asymmetric topology. In: Aull, C.E., Lowen, R. (eds.) Handbook of the History of General Topology, vol. 3, pp. 853–968. Kluwer, Dordrecht (2001)
Künzi, H.P.A., Pajooshesh, H., Schellekens, M.P.: Partial quasi-metrics. Theor. Comput. Sci. 365, 237–246 (2006)
Matthews, S.G.: Partial metric topology. Ann. N.Y. Acad. Sci. 728, 183–197 (1994)
Matthews, S.G.: An extensional treatment of lazy data flow deadlock. Theor. Comput. Sci. 151, 195–205 (1995)
Oltra, S., Romaguera, S., Sánchez-Pérez, E.A.: Bicompleting weightable quasi-metric spaces and partial metric spaces. Rend. Circ. Mat. Palermo 51, 151–162 (2002)
Romaguera, S., Schellekens, M.P.: Quasi-metric properties of complexity spaces. Topol. Appl. 98, 311–322 (1999)
Schellekens, M.: The Smyth completion: a common foundation for denonational semantics and complexity analysis. Electron. Notes Theor. Comput. Sci. 1, 211–232 (1995)
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Cerdà-Uguet, M.A., Schellekens, M.P. & Valero, O. The Baire Partial Quasi-Metric Space: A Mathematical Tool for Asymptotic Complexity Analysis in Computer Science. Theory Comput Syst 50, 387–399 (2012). https://doi.org/10.1007/s00224-010-9310-7
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00224-010-9310-7