Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Listening to Sorting Algorithms!

Автор: Kitty Beans

Загружено: 2020-01-28

Просмотров: 783663

Описание:

!IMPORTANT NOTE!
"Bounce Sort" is actually called "Cocktail Shaker Sort". If anyone is calling it Bounce Sort these days, it's probably my fault. Sorry for that! If you go around calling it Bounce Sort, your professor's gonna be like "wtf is that? F!" and that ain't gonna be fun!
Ditto for Banshee Sort, it's probably a type of Bucket Sort!

As for Insertion Sort, it's been brought to my attention that it might actually be something called Gnome Sort. Reading about the two at a glance, I think I need to read more. Until then, perhaps you should, too, if it interests you?
  -------
Sorting Algorithms used (some were misnamed in the video):
00:00 [1] Bubble sort
00:21 [2] Cocktail Shaker Sort
01:16 [3] Insertion Sort
01:53 [4] Quick Sort
03:07 [5] Bucket Sort, 2 buckets
06:03 [6] Bucket Sort, 10 buckets
08:10 [7] Binary Radix Sort, Least Significant Digit
09:24 [8] Decimal Radix Sort, Least Significant Digit
10:07 [9] Base 121 Radix Sort, Least Significant Digit
10:39 [10] Dynamic Range Random Sort
12:14 [11] Bucket Sort, 192 Buckets
13:09 [12] Racing all together with same data set
13:43 [13] Decimal Radix Sort, Least Significant Digit, finishes
13:51 [14] Quick Sort, finishes
15:08 [15] Bucket Sort, 10 buckets, finishes
15:11 [16] Insertion Sort, finishes
16:19 [17] Cocktail Shaker Sort, finishes
16:50 [18] Dynamic Range Random Sort, finishes
17:07 [19] Bubble Sort, finishes
9000:01 [lol] BOGO sort, still not done

- - - - - - -

Dynamic Range Random Sort has 2 phases and a 'Tries counter'.

Phase 1:
It randomly selects two elements in the list, a left element and right element. If right has a smaller value than left, they are swapped, and reset Tries to 0. Else, no swap, and we increment Tries by 1. If Tries becomes larger than some number (say 30 for example), it enters phase 2.

Phase 2:
Randomly select one element in the list, then randomly select either the element to the left or the right of that. If the two elements are in descending order, swap them and reset Tries to 0. Else, increment Tries by 1. If Tries ever becomes larger than some number, (such as 30 for example), verify that the list is sorted. If it is, we're done! If not, reset Tries to 0 and resume phase 2.

This sorting algorithm can take a very disorganized list and quickly get it to an almost solved state; each element is very close to where it should be if the list were sorted. But the closer it gets to being solved, the slower it works (each element takes longer to get closer to its correct position)

Listening to Sorting Algorithms!

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

Visualizing 70 Sorting Algorithms

Visualizing 70 Sorting Algorithms

Как пытались сломать тетрис на протяжении 34 лет.

Как пытались сломать тетрис на протяжении 34 лет.

ЧТО СКРЫВАЮТ РАДИОВОЛНЫ?

ЧТО СКРЫВАЮТ РАДИОВОЛНЫ?

The fastest sorting algorithm

The fastest sorting algorithm

Самая Сложная Задача В Истории Самой Сложной Олимпиады

Самая Сложная Задача В Истории Самой Сложной Олимпиады

sorting algorithms to relax/study to

sorting algorithms to relax/study to

15 Sorting Algorithms in 6 Minutes

15 Sorting Algorithms in 6 Minutes

Что Будет, Если СПЛАВИТЬ ВСЕ МЕТАЛЛЫ Вместе?

Что Будет, Если СПЛАВИТЬ ВСЕ МЕТАЛЛЫ Вместе?

90 Sorts on Large Inputs - Scatter Plot

90 Sorts on Large Inputs - Scatter Plot

Я Прошёл Все НЕВОЗМОЖНЫЕ Сиды в Майнкрафт! [Beppo на русском]

Я Прошёл Все НЕВОЗМОЖНЫЕ Сиды в Майнкрафт! [Beppo на русском]

Являются ли шахматы хорошей игрой с точки зрения современного геймдизайна?

Являются ли шахматы хорошей игрой с точки зрения современного геймдизайна?

*SEIZURE WARNING* Pushing Sorts to their Limits

*SEIZURE WARNING* Pushing Sorts to their Limits

Числа, которые противоречат науке

Числа, которые противоречат науке

БОРЮСЬ С ГУСЁМ ЗА СВОЙ КОМПЬЮТЕР

БОРЮСЬ С ГУСЁМ ЗА СВОЙ КОМПЬЮТЕР

Проблема числа 10958 [Numberphile]

Проблема числа 10958 [Numberphile]

ВСЕ компьютерные ВИРУСЫ: объясняю за 7 минут

ВСЕ компьютерные ВИРУСЫ: объясняю за 7 минут

Slow sorting: Stooge sort and Bogo sort

Slow sorting: Stooge sort and Bogo sort

10 FORBIDDEN Sorting Algorithms

10 FORBIDDEN Sorting Algorithms

Sorting Algorithms but the Computer Makes Mistakes (LIGHT / SOUND WARNING)

Sorting Algorithms but the Computer Makes Mistakes (LIGHT / SOUND WARNING)

In-Place LSD Radix Sort (Every Input)

In-Place LSD Radix Sort (Every Input)

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]