Counting Sort Explained and Implemented with Examples in Java | Sorting Algorithms | Geekific

preview_player
Показать описание

So far, we’ve been enriching our sorting algorithm series with algorithms that are able to sort any type of objects. But what if we needed to sort only integers, and in particular small ints, are these algorithms still the best choice out there? Or do we have more performant ones we can rely on? Well, one of these specialized algorithms goes by Counting Sort and is covered and implemented in this video.

Timestamps:
00:00 Introduction
00:35 What is Counting Sort?
02:11 Sorting an array using Counting Sort!
03:59 Counting Sort Implementation
06:45 Putting our Code to the Test
07:29 Counting Sort Implementation v2.0
11:34 Performance and Complexity
12:22 Thanks for Watching!

If you found this video helpful, check other Geekific uploads:

#Geekific #SortingAlgorithms #CountingSort #Java
Рекомендации по теме
Комментарии
Автор

BEST video I've stumbled across so far on explaining the counting sort algorithm. Really helps to see actual code with the video. Thank you!

josephthecreator
Автор

thanks a ton for covering more use cases than simpler one. Really good. !! Hope more people come here and this channel grows !!

gpatil
Автор

can u explain how this sort works for strings??

aryanmalewar
Автор

Amazing video but do keep that in mind that these two algorithms are not stable.

botondmate