In English

Practical performance of incremental topological sorting and cycle detection algorithms

Ragnar Lárus Sigurðsson
Göteborg : Chalmers tekniska högskola, 2017. 43 s.
[Examensarbete på avancerad nivå]

Algorithms become more advanced and asymptotic time bounds get lower but there is very little data on the actual performance of new algorithms. The aim of this thesis is to do empirical testing of the most recent incremental topological sorting and cycle detection algorithms in order to compare them and to provide an accessible guide to where each algorithm performs best.

The algorithms are implemented as the articles describe them and compared on even grounds by measuring their performance by adding edges to graphs.

For sparse graphs the HKMST-Sparse [7] algorithm performed best and HKMSTDense [7] for very dense graphs. The Pearce & Kelly [8] algorithm is a strong contender as it is extremely simple and has acceptable performance across all graph densities and performs best in the range 35-80% density.

Nyckelord: Topological sorting, Cycle detection, Algorithms, Data structures.

Publikationen registrerades 2017-02-27. Den ändrades senast 2017-02-27

CPL ID: 248308

Detta är en tjänst från Chalmers bibliotek