Formal derivation of spanning trees algorithms

  • Authors:
  • Jean-Raymond Abrial;Dominique Cansell;Dominique Méry

  • Affiliations:
  • Consultant, Marseille, France;LORIA, Université Henri Poincaré Nancy 1;LORIA, INRIA Lorraine, Vandoeuvre-lès-Nancy Cédex, France

  • Venue:
  • ZB'03 Proceedings of the 3rd international conference on Formal specification and development in Z and B
  • Year:
  • 2003

Quantified Score

Hi-index 0.00

Visualization

Abstract

Graphs algorithms and graph-theoretical problems provide a challenging battle field for the incremental development of proved models. The B event-based approach implements the incremental and proved development of abstract models which are translated into algorithms; we focus our methodology on the minimum spanning tree problem and on Prim's algorithm. The correctness of the resulting solution is based on properties over trees and we show how the greedy strategy is efficient in this case. We compare properties proven mechanically to the properties found in a classical algorithms textbook.