An analysis of selection sort using recurrence relations

  1. Ferri Rabasa, Francesc Josep
  2. Albert, Jesús
Aldizkaria:
Questiió: Quaderns d'Estadística, Sistemes, Informatica i Investigació Operativa

ISSN: 0210-8054

Argitalpen urtea: 1996

Alea: 20

Zenbakia: 1

Orrialdeak: 111-119

Mota: Artikulua

Beste argitalpen batzuk: Questiió: Quaderns d'Estadística, Sistemes, Informatica i Investigació Operativa

Laburpena

This paper presents a method for obtaining the expected number of data movements executed by the well-known Selection sort algorithm along with its corresponding variance. The approach presented here requires hardly any specific mathematical background. In particular, the average-case cost and variance are represented using recurrence relations whose solutions lead to the desired results. Even though this method is not applicable in general, it serves to conveniently present average-case algorithm analysis in depth in an elementary course on Algorithms