2.8.1  QuickSort Algorithm

2.8.1 QuickSort Algorithm

Abdul Bari

6 лет назад

3,140,724 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

ksvb
ksvb - 18.11.2023 12:36

i have no idea what hes saying

Ответить
Endolymp
Endolymp - 16.11.2023 01:57

Thanks a lot for this video. I watched two other explanations that took slightly different routes and were confusing.
Your explanation was concise, easy to follow and to the point.

Ответить
Miss Katherine
Miss Katherine - 16.11.2023 01:31

is it correct when you say when I<than j swap? isn't supposed to be if I becomes greater than j?

Ответить
Swordsman.
Swordsman. - 15.11.2023 05:07

makasih lord bari

Ответить
ʀᴏʜɪᴛʜ ʀᴏʜɪᴛʜ ᭄
ʀᴏʜɪᴛʜ ʀᴏʜɪᴛʜ ᭄ - 13.11.2023 19:51

Thanks!

Ответить
Rakib Ullah
Rakib Ullah - 13.11.2023 16:13

সেরা

Ответить
Wondmagegn Abraham
Wondmagegn Abraham - 11.11.2023 20:48

Wow, so elegant.

Ответить
Pro Nooob
Pro Nooob - 10.11.2023 09:30

Abdul Bari Bhai,
For the past 3 days I was having Error in my code and wasn't able to figure it out but after seeing and implementing your algorithm, I finally sorted the Error and now my Program works perfectly.
Thank you Brother,
Lots of cheers to you 🫡

Ответить
SHORTS 🫦
SHORTS 🫦 - 01.11.2023 07:04

lovelyyyyy

Ответить
MineCrafterCity
MineCrafterCity - 29.10.2023 16:20

Very good and simple explaination. Only mistake is that the pivot should be placed at the end of the array and should be swaped with i instead of j.

Ответить
Jaskaran Singh
Jaskaran Singh - 25.10.2023 21:27

Sir the partition algo isnt correct at the base level. I just tried coding it the while loops doesnt work as expected for smallest iteration

Ответить
GULABCHAND GUPTA
GULABCHAND GUPTA - 13.10.2023 11:00

Such a great teacher in my life one day I will be meet u sir 🙏🙏

Ответить
Dimpal Gogoi
Dimpal Gogoi - 11.10.2023 08:12

sir can you please explain the quicksort iteratively

Ответить
Hiba Khan
Hiba Khan - 29.09.2023 16:40

wow made it easy for me thanks

Ответить
ProHusband
ProHusband - 27.09.2023 21:35

Nice

Ответить
Movie Clips
Movie Clips - 27.09.2023 18:00

Thank you very much sir❤

Ответить
David Morton
David Morton - 25.09.2023 10:59

I like when he stops and stares deeply into my eyes until I understand.

Ответить
AI Matters
AI Matters - 24.09.2023 01:25

this is the best video for quick sort. Thank you

Ответить
Syed Ahmed
Syed Ahmed - 21.09.2023 20:00

If I give input as 5 4 3 2 1 to be sorted -- then partition logic will fail as we are doing
do while with just a condition A[i] <= pivot
& keep on incrementing i . this will go beyond the array boundary.? It should also have condition that i < j or i < h

Ответить
Muhammad Hassaan Basil
Muhammad Hassaan Basil - 20.09.2023 15:38

Simple and easy to digest explanation.

Ответить
Aisha Shaik
Aisha Shaik - 18.09.2023 17:41

Sir it took me 3 months to understand this sorting technique.... But now that I found this video! I clearly understood every pin to pin detail of how it works... Thank you so much for making it so easy sir🎉

Ответить
Md. Nahidul Alam Chowdhury
Md. Nahidul Alam Chowdhury - 14.09.2023 19:28

It's really concise and understandable. Thanks a lot.

Ответить
Vũ Tuấn
Vũ Tuấn - 11.09.2023 17:54

Do we nnecessary need to have a infinity value?

Ответить
Deeksha Bhat
Deeksha Bhat - 29.08.2023 10:44

😍😍😍

Ответить
Do not Ask me my name
Do not Ask me my name - 25.08.2023 15:49

in do while loop don't we need to check for bounday as well? exact algorithm gave me out of index exception with [10, 3]

Ответить
Jinendra Jain
Jinendra Jain - 21.08.2023 20:15

Thank you very much sir! I always dreaded quicksort from the name of it, but you explained it so beautifully!

Ответить
Tarun Reddy
Tarun Reddy - 19.08.2023 08:48

Thanks sir because of you I’ve cleaned my DAA exam

Ответить
Creative Arts
Creative Arts - 14.08.2023 07:48

U made this algorithm quick to understand❤

Ответить
Abdo pianex
Abdo pianex - 10.08.2023 17:58

Thank you from Algeria 🇩🇿

Ответить
Kaustubh Ramteke
Kaustubh Ramteke - 09.08.2023 09:00

fucking genius

Ответить
Sefke
Sefke - 04.08.2023 18:17

If anyone had a problem where the last element in the array isn't sorted, just replace the do while loop with a regular while loop.

Ответить
Tau Ceti
Tau Ceti - 29.07.2023 12:42

Legend

Ответить
Anyanwu Chinedu
Anyanwu Chinedu - 27.07.2023 01:21

I applied the algorithm on the array [8 4 6 5 0 1] and it wasn't perfect until I changed the condition while(a[i]<=pivot) to while(i<j && a[i]<=pivot) Maybe I didn't get the trick behind the INFINITY. This tutorial has really demystified this topic. Kudos

Ответить
Amio Malakar
Amio Malakar - 21.07.2023 19:55

Abdul Bari sir is a living legend of DSA

Ответить
Tutor University
Tutor University - 20.07.2023 07:21

Can you make videos for design and analysis of algorithm?

Ответить
george of the jungle
george of the jungle - 17.07.2023 09:12

bless this individual

Ответить
Saravana sai
Saravana sai - 16.07.2023 16:49

😢 Abdul Bari. That's a clear explanation. I am trying to under that speration part for 4 hours. You nailed it in 13 min

Ответить
Aysha Sherin M S
Aysha Sherin M S - 16.07.2023 14:47

Thank You Sir 😊

Ответить
Alex Permiakov
Alex Permiakov - 12.07.2023 23:45

Great video!

In the first do-while loop, do { i++ } while(a[i] <= pivot), it should use the less than operator (<) instead of less than or equal to (<=) to maintain correctness. This ensures that the pivot element stays in its correct position and prevents potential infinite loops if there are consecutive duplicate pivot elements.

Ответить
Sahil Khan
Sahil Khan - 12.07.2023 17:20

Ye toh Abdul Bari hai, ye toh accha bacha hai, ye algorithm padhta hai, acchi baatein batata hai🤲

Ответить
VN Filmography
VN Filmography - 10.07.2023 17:31

thank you sir

Ответить
syedhussain
syedhussain - 09.07.2023 02:37

I think at 10: 15, you are writing the incorrect condition. I think it should be A[i] > pivot and A[j] < pivot. Correct me if I am wrong but this could just be a typo. Thoughts?

Ответить
Esther ch rani
Esther ch rani - 05.07.2023 04:50

Thank you sir very much sir ❤

Ответить
zarmeza1
zarmeza1 - 04.07.2023 09:30

excellent explanation

Ответить
Sulkin
Sulkin - 03.07.2023 19:17

we all came here after our lecture on sorting algorithms lets be real here

Ответить
Oryema Brian
Oryema Brian - 28.06.2023 17:34

This is an Amazing Video

Ответить