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 条
  • [41] Towards automatic generation of formal specifications for CML consistency verification
    Sharbaf, Mohammadreza
    Zamani, Bahman
    Ladani, Behrouz Tork
    2015 2ND INTERNATIONAL CONFERENCE ON KNOWLEDGE-BASED ENGINEERING AND INNOVATION (KBEI), 2015, : 860 - 865
  • [42] Formal Description and Automatic Generation of Learning Spaces based on Ontologies
    Martini, Ricardo Giuliani
    Librelotto, Giovani Rubert
    Henriques, Pedro Rangel
    KNOWLEDGE-BASED AND INTELLIGENT INFORMATION & ENGINEERING SYSTEMS: PROCEEDINGS OF THE 20TH INTERNATIONAL CONFERENCE KES-2016, 2016, 96 : 244 - 253
  • [43] Automatic Sequencing of Ballet Poses A Formal Approach to Phrase Generation
    LaViers, Amy
    Chen, Yushan
    Belta, Calin
    Egerstedt, Magnus
    IEEE ROBOTICS & AUTOMATION MAGAZINE, 2011, 18 (03) : 87 - 95
  • [44] TOWARDS FORMAL DESCRIPTION AND AUTOMATIC-GENERATION OF PROGRAMMING ENVIRONMENTS
    SHINODA, Y
    KATAYAMA, T
    LECTURE NOTES IN COMPUTER SCIENCE, 1990, 467 : 261 - 270
  • [45] From Batch to Stream: Automatic Generation of Online Algorithms
    Wang, Ziteng
    Pailoor, Shankara
    Prakash, Aaryan
    Wang, Yuepeng
    Dillig, Isil
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2024, 8 (PLDI):
  • [46] Automatic generation of multipath algorithms in the cellular nonlinear network
    Preciado, VM
    Guinea, D
    Montúfar, R
    APPLICATIONS OF ARTIFICIAL NEURAL NETWORKS IN IMAGE PROCESSING VI, 2001, 4305 : 149 - 159
  • [47] Behavior-Informed Algorithms for Automatic Documentation Generation
    Rodeghero, Paige
    2017 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME), 2017, : 660 - 664
  • [48] On the automatic generation of metaheuristic algorithms for combinatorial optimization problems
    Martin-Santamaria, Raul
    Lopez-Ibanez, Manuel
    Stutzle, Thomas
    Colmenar, J. Manuel
    EUROPEAN JOURNAL OF OPERATIONAL RESEARCH, 2024, 318 (03) : 740 - 751
  • [49] Algorithms for Automatic Generation of Logical Questions on Mobile Devices
    Wang, Kun
    Li, Tao
    Han, Jungang
    Lei, Yani
    INTERNATIONAL CONFERENCE ON FUTURE COMPUTER SUPPORTED EDUCATION, 2012, 2 : 258 - 263
  • [50] CALEX: Automatic generation of timetables for examinations with genetic algorithms
    Moreira, Jose Joaquim M.
    Godinho, Antonio M. de A. L.
    NOVAS PERSPECTIVAS EM SISTEMAS E TECNOLOGIAS DE INFORMACAO, VOL I, 2007, : 211 - 222