Using the Dafny Verification System in An Introduction To Algorithms Class

Algorithm students often have difficulty understanding and using problem specifications and algorithm outlines. During the first three weeks of an algorithms class, the author used Dafny to address this. Dafny is a programming language and verification system developed at Microsoft Research. A Dafny...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Veröffentlicht in:Computer Science and Education in Computer Science 2014, Vol.10 (1), p.23-29
1. Verfasser: Braude, Eric
Format: Artikel
Sprache:eng
Schlagworte:
Online-Zugang:Volltext
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:Algorithm students often have difficulty understanding and using problem specifications and algorithm outlines. During the first three weeks of an algorithms class, the author used Dafny to address this. Dafny is a programming language and verification system developed at Microsoft Research. A Dafny program requires explicit preconditions, post conditions, loop invariants, and loop termination counters. In return, it uses a theorem prover to mechanically prove or question the correctness of method outlines and implementations. The preliminary results of this trial suggest that when students work with Dafny, they better understand and appreciate the importance of preconditions, post conditions, invariance and loop termination.
ISSN:1313-8624
2603-4794