Quick Sort | Code and Explanation | C++ Course - 19.2

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

> Quick Sort - 0:00
> Quick Sort Function Algorithm - 1:15
> Partition Function Algorithm - 4:43
> Code - 8:10
> Time Complexity - 11:45

shreyaschavhan
Автор

Kya behtreen tarike se sikhaya hai mam ...wow thank of you

Vivekanandfanspage
Автор

yes, after watching many yt tutorials, literally the animation and way of teaching line by line made quick sort easy

santhosh
Автор

@3:37 the partitioning will be done around 6 because swap(i+1, r) will swap 2 and 6

bhavuktomar
Автор

informative video as always!
Note : The swap function is inbuilt in C++, saving some time!

parthmittal
Автор

Partition(arr[], l, r){
pivot = arr[r];
i=l-1
for j=l to r-1
if arr[j] < pivot
i++;
swap(i, j)
swap(i+1, r)
return i+1
}

tawseeftaher
Автор

Today one more step for C++ placement series.👍❤️

mujammilpinjara
Автор

Quick sort is amazing and fast algorithm.
In average case it gives O(n*log(n) ) complexity.

Best way to select pivot is to select it randomly. (Not by middle element)

Quicksort is one of the fastest sorting algorithm, so C language provide separate qsort() inbuilt function.

C++ sort() vs C qsort()

Always remember c++ sort() is hybrid algorithm ( using different algorithms for different situations ). So sort() is more faster than qsort() in average cases.

Happy learning 😊

rutvikrana
Автор

uff what a video..really loved it .!!!


saving my comment for future

nomita
Автор

Bhaiya we dont no how to thank u, u and ur team may always be happy.
Thank you very much "apni kaksha"🙏🙏🙏

mohammedsaqlain
Автор

Mam very big Thanks to make this Sorting very easy with the help of animation.
I really appreciate yourself with all my heart 🙏🙏.

hirdeshkumar
Автор

Teacher need to teach like mom. Punishment like dad.

vaibhavbelekar
Автор

one of the really best video found ever on whole internet

ranarehan
Автор

Thankyou For This Speed.
Fixed The Place Till 3rd Dec 😍😍

harshitrathi
Автор

simplest and best ever video seen on youtube

oqant
Автор

Man this was far better than what I was taught in college... Thank you.

dipenchavda
Автор

Your way of study iss very easy and when you smiling during lecture then my all the confusion is solved out... 😘. Thank you mam.. ❤️

chzain
Автор

I am really liking this course
Thank you aman bhaiya and all the teachers of apni kaksha

maulikshah
Автор

I really appreciate your efforts thanks ...

muhammadibrahimkhan
Автор

didi, you should be paid as much as a college professor for these explanations

debupatra
join shbcf.ru