Formal derivation and automatic generation of sorting algorithms

被引:0
|
作者
Shi Haihe [1 ]
Shi Haipeng [1 ]
Xue Jinyun [1 ]
机构
[1] Chinese Acad Sci, Inst Software, Beijing 100080, Peoples R China
关键词
sorting; formal derivation; loop invariant; automatic generation;
D O I
暂无
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Sorting has a broad range of application. For both practical and theoretical reasons, sorting is one of the most widely studied problems in algorithm design. The paper presents our new formal methods and techniques, through which the ideas behind QuickSort algorithm are revealed naturally from a common formal sorting specification, and then its loop invariant and nonrecursive algorithmic solution are produced mechanically, despite that developing the loop invariant of recursive problem is a difficult task. Furthermore, instead of fresh formal derivation, the other two sorting algorithms, Selection Sort and Bubble Sort, are easily achieved by applying different problem partition to QuickSort case. By means of tools their executable language programs can automatically be generated. The whole formal development process that starts from a high-level specification and results in provably correct sorting algorithmic programs, is mechanizable and unified, meanwhile provides the basis for the construction of a system for algorithm design from formal specifications.
引用
下载
收藏
页码:311 / 316
页数:6
相关论文
共 50 条
  • [31] Automatic Property Generation for the Formal Verification of Bus Bridges
    Soeken, Mathias
    Kuehne, Ulrich
    Freibothe, Martin
    Fey, Goerschwin
    Drechsler, Rolf
    2011 IEEE 14TH INTERNATIONAL SYMPOSIUM ON DESIGN AND DIAGNOSTICS OF ELECTRONIC CIRCUITS AND SYSTEMS (DDECS), 2011, : 417 - 422
  • [32] Adaptive sorting algorithms for evaluation of automatic zoning employed in OCR devices
    Gobi, R
    Latifi, S
    Bein, W
    CISST'2000: PROCEEDINGS OF THE INTERNATIONAL CONFERENCE ON IMAGING SCIENCE, SYSTEMS, AND TECHNOLOGY, VOLS I AND II, 2000, : 253 - 259
  • [33] Automatic derivation of statistical data analysis algorithms: Planetary nebulae and beyond
    Fischer, B
    Hajian, A
    Knuth, K
    Schumann, J
    BAYESIAN INFERENCE AND MAXIMUM ENTROPY METHODS IN SCIENCE AND ENGINEERING, 2004, 707 : 276 - 291
  • [34] Automatic Generation of Algorithms for the Binary Knapsack Problem
    Parada, Lucas
    Sepulveda, Mauricio
    Herrera, Carlos
    Parada, Victor
    2013 IEEE CONGRESS ON EVOLUTIONARY COMPUTATION (CEC), 2013, : 3148 - 3152
  • [35] Recent Algorithms on Automatic Hexahedral Mesh Generation
    Yu, Wuyi
    Zhang, Kang
    Li, Xin
    10TH INTERNATIONAL CONFERENCE ON COMPUTER SCIENCE & EDUCATION (ICCSE 2015), 2015, : 697 - 702
  • [36] Automatic test generation algorithms for analogue circuits
    Soma, M
    IEE PROCEEDINGS-CIRCUITS DEVICES AND SYSTEMS, 1996, 143 (06): : 366 - 373
  • [37] Automatic Generation of Distributed Algorithms with Generative AI
    Vaz, Diogo
    Matos, David R.
    Pardal, Miguel L.
    Correia, Miguel
    2023 53RD ANNUAL IEEE/IFIP INTERNATIONAL CONFERENCE ON DEPENDABLE SYSTEMS AND NETWORKS - SUPPLEMENTAL VOLUME, DSN-S, 2023, : 127 - 131
  • [38] Automatic generation of detection algorithms for design defects
    Moha, Naouel
    Gueheneuc, Yann-Gael
    Leduc, Pierre
    ASE 2006: 21ST IEEE INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING, PROCEEDINGS, 2006, : 297 - 300
  • [39] Code Generation from Formal Models for Automatic RTOS Portability
    Gomes, Renata Martins
    Baunach, Marcel
    PROCEEDINGS OF THE 2019 IEEE/ACM INTERNATIONAL SYMPOSIUM ON CODE GENERATION AND OPTIMIZATION (CGO '19), 2019, : 271 - 272
  • [40] Automatic interoperability test case generation based on formal definitions
    Desmoulin, Alexandra
    Viho, Cesar
    FORMAL METHODS FOR INDUSTRIAL CRITICAL SYSTEMS, 2008, 4916 : 234 - 250