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
来源
关键词
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 条
  • [41] Modeling of Electric Power Systems Based on Diakoptic Approach and Parallel Algorithms in Modern Computer Tools
    Stakhiv, Petro
    Rendzinyak, Serhiy
    Hoholyuk, Oksana
    PRZEGLAD ELEKTROTECHNICZNY, 2010, 86 (01): : 115 - 117
  • [42] A Generic Approach to Accelerating Belief Propagation Based Incomplete Algorithms for DCOPs via a Branch-and-Bound Technique
    Chen, Ziyu
    Jiang, Xingqiong
    Deng, Yanchen
    Chen, Dingding
    He, Zhongshi
    THIRTY-THIRD AAAI CONFERENCE ON ARTIFICIAL INTELLIGENCE / THIRTY-FIRST INNOVATIVE APPLICATIONS OF ARTIFICIAL INTELLIGENCE CONFERENCE / NINTH AAAI SYMPOSIUM ON EDUCATIONAL ADVANCES IN ARTIFICIAL INTELLIGENCE, 2019, : 6038 - 6045
  • [43] Improved Machine Learning based Approach for Autotuning PID Controller using Genetic Algorithms and Parallel Processing
    Ahmadi, Aghil
    Esfanjani, Reza Mahboobi
    JOURNAL OF SCIENTIFIC & INDUSTRIAL RESEARCH, 2025, 84 (03): : 269 - 277
  • [44] OPTIMIZATION APPROACH FOR WIND FARM CABLE LAYOUT BASED ON ITERATIVE SELF-ORGANIZING DATA ANALYSIS TECHNIQUE ALGORITHM AND SWAP SEQUENCE BASED PARTICLE SWARM ALGORITHMS
    Yu Deqi
    Li Ming
    PROCEEDINGS OF ASME TURBO EXPO 2022: TURBOMACHINERY TECHNICAL CONFERENCE AND EXPOSITION, GT2022, VOL 11, 2022,
  • [45] A non-sequential refinement approach to improve word embeddings using GPU-based string matching algorithms
    Behzad Naderalvojoud
    Adnan Ozsoy
    Cluster Computing, 2021, 24 : 3123 - 3134
  • [46] A non-sequential refinement approach to improve word embeddings using GPU-based string matching algorithms
    Naderalvojoud, Behzad
    Ozsoy, Adnan
    CLUSTER COMPUTING-THE JOURNAL OF NETWORKS SOFTWARE TOOLS AND APPLICATIONS, 2021, 24 (04): : 3123 - 3134
  • [47] Randomised Analysis of Backtracking-based Search Algorithms in Elucidating Sudoku Puzzles Using a Dual Serial/Parallel Approach
    Garg, Pramika
    Jha, Avish
    Shukla, Amogh
    INVENTIVE COMPUTATION AND INFORMATION TECHNOLOGIES, ICICIT 2021, 2022, 336 : 281 - 295
  • [48] Flavonoid interactions during digestion, absorption, distribution and metabolism: a sequential structure-activity/property relationship-based approach in the study of bioavailability and bioactivity
    Gonzales, Gerard Bryan
    Smagghe, Guy
    Grootaert, Charlotte
    Zotti, Moises
    Raes, Katleen
    Van Camp, John
    DRUG METABOLISM REVIEWS, 2015, 47 (02) : 175 - 190
  • [49] A Novel Computer Program Based Approach to Intellectual Property Protection in Sequential Circuits and Comparison of 3-bit and 4-bit Signatures on Hardware Requirement
    Malik, Siddhant
    2013 INTERNATIONAL CONFERENCE ON MULTIMEDIA, SIGNAL PROCESSING AND COMMUNICATION TECHNOLOGIES (IMPACT), 2013, : 198 - 202