• DocumentCode
    1572504
  • Title

    Generating Algorithms plus Loop Invariants by Formal Derivation

  • Author

    Shi, Haihe ; Du, Dawei ; Xue, Jinyun

  • fYear
    2008
  • Firstpage
    496
  • Lastpage
    501
  • Abstract
    We advocate a mechanical derivation approach for developing provably correct algorithmic programs. The paper presents our new formal methods and techniques for generating algorithms plus loop invariants. Through our methods and techniques, the ideas behind MergeSort algorithm is revealed naturally from a formal specification, and then its loop invariant and nonrecursive algorithmic solution are generated mechanically. Furthermore, instead of fresh formal derivation, the Insertion Sort is easily achieved based on the derivation of MergeSort. By means of our tools their executable language programs can be generated automatically. Therefore mathematical knowledge required by formal development process is reduced substantially and the confidence in the resultant code is increased.
  • Keywords
    formal specification; program control structures; program verification; sorting; MergeSort algorithm; formal development process; formal specification; insertion sort; loop invariant; nonrecursive algorithmic solution; provably correct algorithmic program; Algorithm design and analysis; Computer science; Design methodology; Educational institutions; Formal specifications; Information science; Problem-solving; Software algorithms; Sorting; USA Councils;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Computer and Information Science, 2008. ICIS 08. Seventh IEEE/ACIS International Conference on
  • Conference_Location
    Portland, OR
  • Print_ISBN
    978-0-7695-3131-1
  • Type

    conf

  • DOI
    10.1109/ICIS.2008.34
  • Filename
    4529867