filmov
tv
Sorting algorithms in Python - Shaker Sort example

Показать описание
Another sorting algorithm we`ve done in Python today - Shaker sort. The main idea is this - it`s still kind of a bubble sort, but improved - we`re going with two directions and shrink borders on places of last swap every time.
=====================================
=====================================
=====================================
=====================================