Complexity of implementations on the level of algebraic specifications

  • Authors:
  • Hartmut Ehrig;Bernd Mahr

  • Affiliations:
  • -;-

  • Venue:
  • STOC '80 Proceedings of the twelfth annual ACM symposium on Theory of computing
  • Year:
  • 1980

Quantified Score

Hi-index 0.00

Visualization

Abstract

The aim of this paper is to study implementations of abstract data types and their complexity within the framework of algebraic specifications. An implementation of an abstract data type ADTO by an abstract data type ADT1 is defined on a syntactical and on a semantical level where data and operations of ADTO are simulated by those of ADT1. In order to investigate complexity of implemented operations and to compair different implementations we axiomatically introduce complexity measures for the operations in ADTO with respect to a given implementation of ADTO by ADT1. A most natural interesting class of complexity measures which satisfy our axioms is compatible with time complexity of Turing Machines. This is shown by specification and implementation of timebounded Turing Machines within our algebraic framework and the simulation of a general nondeterministic interpreter for algebraic implementations by a nondeterministic Turing Machine. This relationship allows to show the existence of solutions and of upper and lower bounds for the complexity of a broad class of implementation problems in our sense. A corollary shows that there are algebraic specifications for all those recursive functions which are bounded in time by algebraically specifyable functions. Since the complexity measure for ADTO-operations in a given implementation IMPL1 of ADTO by ADT1 in general depends on the complexity of the ADT1-operations it is possible to substitute the complexity of the ADT1-operations which may be obtained from an implementation IMPL2 of ADT1 by ADT2. On the other hand the composite implementation IMPL3 of ADTO by ADT2 can be constructed and it is shown that the composite complexity of IMPL3 is less or equal to the substituted complexity considered above provided that some natural consistency conditions are satisfied.