Verification of Counting Sort and Radix Sort
详细信息    查看全文
  • 刊名:Lecture Notes in Computer Science
  • 出版年:2016
  • 出版时间:2016
  • 年:2016
  • 卷:10001
  • 期:1
  • 页码:609-618
  • 作者单位:Stijn de Gouw (19)
    Frank S. de Boer (20)
    Jurriaan Rot (21)

    19. Open University, Heerlen, The Netherlands
    20. Centrum voor Wiskunde en Informatica, Amsterdam, The Netherlands
    21. Radboud University, Nijmegen, The Netherlands
  • 丛书名:Deductive Software Verification ?The KeY Book
  • ISBN:978-3-319-49812-6
  • 卷排序:10001
文摘
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.

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700