Implementation of a non-deterministic loop

  • Authors:
  • Hartmut Höft

  • Affiliations:
  • Eastern Michigan University, Ypsilanti, MI

  • Venue:
  • ACM SIGCSE Bulletin
  • Year:
  • 1991

Quantified Score

Hi-index 0.05

Visualization

Abstract

Dijkstra's calculus of guarded commands incorporates nondeterminism into the branch and the loop statements. I argue in this paper that the course CS8, Organization of Programming Languages, is an appropriate place to introduce this semantics for a language control structure into the undergraduate curriculum. In section IV I present a short implementation for the Dijkstra do... od command as a function in Mathematica. The paper concludes with the application of this function to random walks.