Skip to ContentSkip to Navigation
About us Latest news News News articles

Colloquium Computer Science S. de Gouw

18 January 2017

Date:                      

Wednesday, January 18 2017

Speaker:

Stijn de Gouw ( Open University and CWI, Amsterdam)

Room:

5161.0253 (Bernoulliborg)

Time:

15.00

Title:

Showing that Android's, Java's and Python's sorting algorithm is broken, and formally proving the fix


Abstract:

Tim Peters developed the Timsort hybrid sorting algorithm in 2002. It is a clever combination of ideas from merge sort and insertion sort, and designed to perform well on real world data. TimSort was first developed for Python, but later ported to Java (where it appears as java.util.Collections.sort and java.util.Arrays.sort) by Joshua Bloch (the designer of Java Collections who also pointed out that most binary search algorithms were broken ). TimSort  is today used as the default sorting algorithm for Android SDK, Sun’s JDK and OpenJDK. Given the popularity of these platforms this means that the number of computers, cloud services and mobile phones that use TimSort for sorting is well into the billions.

Fast forward to 2015. After we had successfully verified Counting and Radix sort implementations in Java ( J. Autom. Reasoning 53(2), 129-139 ) with a formal verification tool called KeY , we were looking for a new challenge.  TimSort seemed to fit the bill, as it is rather complex and widely used. Unfortunately, we weren’t able to prove its correctness. A closer analysis showed that this was, quite simply, because TimSort was broken and our theoretical considerations finally led us to a path towards finding the bug (interestingly, that bug appears already in the Python implementation). In this presentation, we show how we did it.

                           

Colloquium coordinators are Prof.dr. M. Aiello (e-mail : M.Aiello rug.nl ) and

Prof.dr. M. Biehl (e-mail: M.Biehl rug.nl )

http://www.rug.nl/research/jbi/news/colloquia/computerscience

Last modified:10 February 2021 12.32 p.m.

More news

  • 16 April 2024

    University of Groningen signs Barcelona Declaration on Open Research Information

    In a significant stride toward advancing responsible research assessment and open science, the University of Groningen has officially signed the Barcelona Declaration on Open Research Information.

  • 02 April 2024

    Flying on wood dust

    Every two weeks, UG Makers puts the spotlight on a researcher who has created something tangible, ranging from homemade measuring equipment for academic research to small or larger products that can change our daily lives. That is how UG...

  • 18 March 2024

    VentureLab North helps researchers to develop succesful startups

    It has happened to many researchers. While working, you suddenly ask yourself: would this not be incredibly useful for people outside of my own research discipline? There are many ways to share the results of your research. For example, think of a...