Verification of Counting Sort and Radix Sort

Stijn de Gouw, Frank S. de Boer, Jurriaan Rot

Research output: Chapter in Book/Report/Conference proceedingChapterAcademicpeer-review

Abstract

We discuss a mechanized correctness proof in KeY of Counting sort and Radix sort. Counting sort is an unusual sorting algorithm in the sense that it is based on arithmetic rather than comparisons. Radix sort is tailored to sorting arrays of large numbers. It uses an auxiliary sorting algorithm, such as Counting sort, to sort the digits of the large numbers one-by-one. The correctness of Radix sort requires the stability of the auxiliary sorting algorithm. Stability here means that the order between different occurrences of the same number is preserved. The correctness proof of Counting sort includes a proof of its stability.
Original languageEnglish
Title of host publicationDeductive Software Verification - The KeY Book
Subtitle of host publicationFrom Theory to Practice
EditorsWolfgang Ahrendt , Bernhard Beckert , Richard Bubel , Reiner Hähnle , Peter H. Schmitt , Mattias Ulbrich
PublisherSpringer
Pages609-618
Number of pages10
ISBN (Electronic)978-3-319-49812-6
ISBN (Print)978-3-319-49811-9
DOIs
Publication statusPublished - 2016

Publication series

SeriesLecture Notes in Computer Science
Volume10001
ISSN0302-9743

Fingerprint

Dive into the research topics of 'Verification of Counting Sort and Radix Sort'. Together they form a unique fingerprint.

Cite this