Programming with sequences

  • Authors:
  • Uday S. Reddy

  • Affiliations:
  • University of North Carolina at Chapel Hill

  • Venue:
  • ACM-SE 20 Proceedings of the 20th annual Southeast regional conference
  • Year:
  • 1982

Quantified Score

Hi-index 0.00

Visualization

Abstract

Programming can be done using procedural definitions or functional definitions. Procedures involve variables and dynamic concepts and are not the natural tools for defining computations. This dynamism of procedural programs is a hindrance to program productivity and program reliability. Functions are natural means of defining computations and do not involve variables, though their recursive formulations may be as bad as dynamic procedural iterations. An alternative style of programming is proposed here for defining functions without using recursion. This style uses abstract sequences defined using recurrence relations. It is shown that the abstract sequences aid reasoning about programs as their properties can be shown using elementary induction principles. They correspond to the trajectories of procedural programs in their state spaces and so can also be used to semantically characterize procedural loops.