A Generic Approach to the Verification of the Permutation Property of Sequential and Parallel Swap-Based Sorting Algorithms

被引:7
|
作者
Safari, Mohsen [1 ]
Huisman, Marieke [1 ]
机构
[1] Univ Twente, Formal Methods & Tools, Enschede, Netherlands
来源
INTEGRATED FORMAL METHODS, IFM 2020 | 2020年 / 12546卷
关键词
Sorting algorithms; Deductive verification; Separation logic;
D O I
10.1007/978-3-030-63461-2_14
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Sorting is one of the fundamental operations in computer science, and many sequential and parallel algorithms have been proposed in the literature. Swap-based sorting algorithms are one category of sorting algorithms where elements are swapped repeatedly to achieve the desired order. Since these algorithms are widely used in practice, their (functional) correctness, i.e., proving sortedness and permutation properties, is of utmost importance. However, proving the permutation property using automated program verifiers is much more challenging as the formal definition of this property involves existential quantifiers. In this paper, we propose a generic pattern to verify the permutation property for any sequential and parallel swap-based sorting algorithm automatically. To demonstrate our approach, we use VerCors, a verification tool based on separation logic for concurrent and parallel programs, to verify the permutation property of bubble sort, selection sort, insertion sort, parallel odd-even transposition sort, quick sort, two in-place merge sorts and TimSort for any arbitrary size of input.
引用
收藏
页码:257 / 275
页数:19
相关论文
共 49 条
  • [21] Parallel genetic algorithms for simulation-based sequential circuit test generation
    Krishnaswamy, D
    Hsiao, MS
    Saxena, V
    Rudnick, EM
    Patel, JH
    Banerjee, P
    TENTH INTERNATIONAL CONFERENCE ON VLSI DESIGN, PROCEEDINGS, 1997, : 475 - 481
  • [22] Morphological algorithms for color images based on a generic-programming approach
    D'Ornellas, MC
    Van den Boomgaard, R
    Geusebroek, JM
    SIBGRAPI '98 - INTERNATIONAL SYMPOSIUM ON COMPUTER GRAPHICS, IMAGE PROCESSING, AND VISION, PROCEEDINGS, 1998, : 435 - 442
  • [23] Lossless Compression of JPEG and GIF files through lexical permutation sorting with Greedy Sequential Grammar Transform based compression
    Saha, Sajib Kumar
    Baowaly, Mrinal Kanti
    Islam, Md. RafiquI
    Rahaman, Md. Masudur
    PROCEEDINGS OF 10TH INTERNATIONAL CONFERENCE ON COMPUTER AND INFORMATION TECHNOLOGY (ICCIT 2007), 2007, : 335 - 339
  • [24] Dominant Point-Based Sequential and Parallel Algorithms for the Multiple Sequential Substring Constrained-LCS Problem
    Tepiele, Hermann bogning
    Tchendji, Vianney kengne
    Onabid, Mathias akong
    Myoupo, J. E. A. N. FReDeRIC
    Ngomade, Armel nkonjoh
    ACM TRANSACTIONS ON PARALLEL COMPUTING, 2024, 11 (04)
  • [25] Counter Based Approach To Intellectual Property Protection In Sequential Circuits And Comparison With Existing Approach
    Malik, Siddhant
    2014 INTERNATIONAL CONFERENCE ON CIRCUITS, SYSTEMS, COMMUNICATION AND INFORMATION TECHNOLOGY APPLICATIONS (CSCITA), 2014, : 48 - 53
  • [26] An Approximate Soft Error Reliability Sorting Approach based on State Analysis of Sequential Circuits
    Zhu, Dan
    Li, Tun
    Li, Si-kun
    2010 IEEE 25TH INTERNATIONAL SYMPOSIUM ON DEFECT AND FAULT TOLERANCE IN VLSI SYSTEMS (DFT 2010), 2010, : 209 - 217
  • [27] A generic evolutionary computation approach based upon genetic algorithms and evolution strategies
    Affenzeller, Michael
    Systems Science, 2002, 28 (02): : 59 - 71
  • [28] A Semantics Modeling Approach Supporting Property Verification based on Satisfiability Modulo Theories
    Chen, Jingqi
    Lu, Jinzhi
    Wang, Guoxin
    Feng, Lei
    Kiritsis, Dimitris
    SYSCON 2022: THE 16TH ANNUAL IEEE INTERNATIONAL SYSTEMS CONFERENCE (SYSCON), 2022,
  • [29] A Deterministic Parallel Routing Approach for Accelerating Pathfinder-based Algorithms
    Siddiqi, Umair F.
    Grewal, Gary
    Areibi, Shawki
    2023 IFIP/IEEE 31ST INTERNATIONAL CONFERENCE ON VERY LARGE SCALE INTEGRATION, VLSI-SOC, 2023, : 253 - 258
  • [30] Programmable Counter Based Approach To Intellectual Property Protection In Sequential Circuits And Comparison With Existing Approach
    Malik, Siddhant
    2014 IEEE 27TH CANADIAN CONFERENCE ON ELECTRICAL AND COMPUTER ENGINEERING (CCECE), 2014,