Registriert seit: 17. Jul 2005
905 Beiträge
Delphi 12 Athens
|
AW: Sortieralgorithmus
6. Mai 2012, 17:13
Daß Bubblesort per se adaptiv ist, ist allerdings falsch.
Ich meine die Bubblesort-Variante mit der äußeren "While-getauscht-do"-Schleife. Die bricht nach einem Durchlauf dann ab. Die Variante mit zwei for-Schleifen ist ja komplett Banane, die hab ich hier unter den Tisch fallen lassen.
Being smart will count for nothing if you don't make the world better. You have to use your smarts to count for something, to serve life, not death.
|