Quick Sort Algorithm | How Quick Sort Works (Example Diagram) | Part - 1 | Sorting Algorithms - DSA

preview_player
Показать описание
Support Simple Snippets by Donations -
--------------------------------------------------------------------------------------------- In this DSA tutorial, we will understand the working of Quick Sort Algorithm with the help of a visual diagram. We will dry run the entire quick sort sorting algorithm to understand its working.
QuickSort is a Divide and Conquer algorithm. It picks an element as pivot and partitions the given array around the picked pivot.
There are many different versions of quickSort that pick pivot in different ways.
1. Always pick first element as pivot.
2. Always pick last element as pivot (implemented in this video)
3. Pick a random element as pivot.
4. Pick median as pivot.
The key process in quickSort is partition().
In the Partitioning process, we perform In-Place sorting on the same array/list in such a way that, all the elements smaller than the pivot element are shifted to the left of the pivot element & all the elements that are larger than the pivot element are shifted to the right of the pivot element.

Simple Snippets Official Website -
Simple Snippets on Facebook -
Simple Snippets on Instagram -
Simple Snippets on Twitter -
Simple Snippets Google Plus Page -
Simple Snippets email ID -

#quicksort #sortingalgorithms #datastructures #algorithms
Рекомендации по теме
Комментарии
Автор

I really appreciate the effort you have done. Even after 3 years, your tutorials are still worthy.

riyadhossain
Автор

This channel should be first recommendation on youtube for DSA

mansigoyal
Автор

This is the best quick sort video i found on youtube.

sourabh
Автор

Very Detailed Explanation Thank you so much ❤

NetajiSaiSuru
Автор

Top in-depth video I’ve seen in DSA. Definitely looking forward to see more! Thanks!!

emmanuelsanchez
Автор

Best Content For DSA .Don't Understand Why This Channel Is So Underrated 😯
Anyways Keep It Up Sir 💪

CricketLover-kcln
Автор

Thank u for clearing all my doubts...Detailing at its best👍👍

pradhumansingh
Автор

Masha'Aallah, That's literally perfect explanation, thank you.

freenox
Автор

The fact that you only get a handful of views and still you are making tutorials for that audience makes me your fan more than a student. Thanks Sir❤
Love and respect from Pakistan❤

ahmadbilal
Автор

great video! Took a complex concept and made it simple to understand

brandonlind
Автор

You have made it seem very easy with your explanation...kudos to your efforts... keep continuing your good work brother 💗

anilkumarambati
Автор

mate you explain stuff so well, I like the fact that you break stuff down step by step, great video's..best I've seen so far

zanderclaassen
Автор

Sir your dry run is just absoulety amazing. Amazing content . I understand every bit of it. Thank you

talhahassan
Автор

bro i love you
you teaching skills are in top on whole internet

dushyantjakhar
Автор

great explanation "HATS OFF TO YOU SIR ".

vedantbhugul
Автор

really detail explaination step by step, appreciate the work

weijunhuang
Автор

Bro I am very glad that I got your video suggestion for this quick sort, I was like searching here and there but didn't got any perfect explanation....
But perfection defines 🌈🙏
Great man, please keep it up.

anshmishra
Автор

Explanation is very good, easily understandable.

veenaas
Автор

your explanation is god level bro.. Thank you so much❤❤❤❤

shanmugamayanm
Автор

the way of ur explanation is beyond imagination, thank u mush u make complex things very very easy :)

AhmedAdel-xgcm