Counting Sort

  Рет қаралды 5,149

Techdose

Techdose

Күн бұрын

This video explains the counting sort algorithm used to get an array's elements sorted. This algorithm works best for a large number of inputs having a small range of data. We can sort an array in increasing, decreasing, non-decreasing and non-increasing orders. This video is from an interview dose live session. The counting sort algorithm depends on the input's nature and has the best-case and worst-case time complexity of O(N) and O(N+Range).
If the range of data, that is difference between minimum and maximum, is low then the time complexity is linear O(N) with the same space complexity.
======================================PLEASE DONATE=============================
🧡 SUPPORT OUR WORK: / techdose
💚 UPI-ID: surya.kahar@ybl
💞JOIN Membership: / @techdose4u
==============================================================================
INSTAGRAM : / surya.pratap.k
LinkedIn: / surya-pratap-kahar-47b...
WEBSITE: techdose.co.in/
TELEGRAM Channel LINK: t.me/codewithTECHDOSE
TELEGRAM Group LINK: t.me/joinchat/SRVOIxWR4sRIVv5...
=======================================================================
USEFUL LINKS:
🟠Must do TIPS to ACE Virtual Interview: • 🔴Must do Tips to ACE y...
🟢Best strategy to excel in your coding interview: • 🔴Best strategy to exce...
🟡Get your dream job in 1 month: • 🔴Get your dream job in...
🔵How to crack dream job in just 2 months: • How to crack dream job...
🟣7 Days DSA plan: techdose.co.in/7-days-dsa-che...

Пікірлер: 4
@Surya-np1bb
@Surya-np1bb Жыл бұрын
Beautifully Explained!!
@Lucifer-xt7un
@Lucifer-xt7un Жыл бұрын
Sir as asked before please make a list of programs for complete beginner so that we will be good to join your course.
@shashankgujarathi8390
@shashankgujarathi8390 8 ай бұрын
what if we have numbers more than 1 digits
@RahulKumar-zr5gu
@RahulKumar-zr5gu 3 ай бұрын
U didn't get what is range.. if any body can expect the difference between range r and n
Radix Sort
12:31
Techdose
Рет қаралды 4,1 М.
ЧУТЬ НЕ УТОНУЛ #shorts
00:27
Паша Осадчий
Рет қаралды 10 МЛН
Llegó al techo 😱
00:37
Juan De Dios Pantoja
Рет қаралды 62 МЛН
ТЫ С ДРУГОМ В ДЕТСТВЕ😂#shorts
01:00
BATEK_OFFICIAL
Рет қаралды 8 МЛН
UNO!
00:18
БРУНО
Рет қаралды 3,7 МЛН
Counting Sort: An Exploration of Sorting Special Input In Linear Time
17:28
Merge Sort algorithm
19:51
Techdose
Рет қаралды 7 М.
Why do calculators get this wrong? (We don't know!)
12:19
Stand-up Maths
Рет қаралды 2,1 МЛН
Quick Sort
17:55
Techdose
Рет қаралды 4,4 М.
Lecture 7: Counting Sort, Radix Sort, Lower Bounds for Sorting
52:09
MIT OpenCourseWare
Рет қаралды 401 М.
Explaining EVERY Sorting Algorithm (part 1)
35:35
Kuvina Saydaki
Рет қаралды 164 М.
Counting sort: intuition + code | Linear Time Sorting | Appliedcourse
18:43
GATE Applied Course
Рет қаралды 16 М.
ЧУТЬ НЕ УТОНУЛ #shorts
00:27
Паша Осадчий
Рет қаралды 10 МЛН