Quick sort example | Divide & Conquer | Data Structures | Lec-61 | Bhanu Priya

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ส.ค. 2024

ความคิดเห็น • 54

  • @subhasishbhowmick8912
    @subhasishbhowmick8912 3 ปีที่แล้ว +68

    Wonder why quick sort is referred as quick🤔

    • @anasmir2315
      @anasmir2315 2 ปีที่แล้ว +7

      Haha same here

    • @kannadainfo7164
      @kannadainfo7164 2 ปีที่แล้ว +4

      Same here

    • @anasarshad3453
      @anasarshad3453 2 ปีที่แล้ว

      @@anasmir2315 same here in summers

    • @Chidambarckulkarni
      @Chidambarckulkarni 10 หลายเดือนก่อน

      Even I as so complex

    • @naninani7109
      @naninani7109 10 หลายเดือนก่อน

      Because it's not a quickest algorithm to learn

  • @MrAditya-xm1pn
    @MrAditya-xm1pn ปีที่แล้ว +5

    this is amazing how easily you describe thanks for your help.

  • @kallurishyamsundhar7195
    @kallurishyamsundhar7195 3 ปีที่แล้ว +5

    actually we move the left but after some steps u have started to move right why that thing happen

  • @yellasirimadhusmitha2796
    @yellasirimadhusmitha2796 2 ปีที่แล้ว +3

    Really it helped me a lot for examination mam.. Thank you mam

  • @jaikrish50
    @jaikrish50 4 ปีที่แล้ว +11

    Mam ur class and your Mehdi very nice

  • @babjssk
    @babjssk 4 ปีที่แล้ว +16

    Fee university me deta hu aur knowledge yha se thx

  • @najafabbas5964
    @najafabbas5964 2 ปีที่แล้ว

    mam your method of teaching is so good

  • @patelvraj1362
    @patelvraj1362 3 ปีที่แล้ว +1

    thank you for sharing your experience with us

  • @marlapudimanoj8668
    @marlapudimanoj8668 4 ปีที่แล้ว +5

    Why did u take right bound to left bcz its higher did u take like that mam

  • @visweshkumar1432
    @visweshkumar1432 3 หลายเดือนก่อน

    Nice explanation mam keep going...😊🤗

  • @pavanipavani9430
    @pavanipavani9430 3 ปีที่แล้ว +1

    Thank u mam for giving nice explanation

  • @revathiselvaraj2087
    @revathiselvaraj2087 4 ปีที่แล้ว +1

    Mam it's nice ......

  • @gangaj4042
    @gangaj4042 4 ปีที่แล้ว +1

    thank you so much

  • @anushakakinada3372
    @anushakakinada3372 3 ปีที่แล้ว +1

    Nice xplaination😄😇mam

  • @tundergamers6364
    @tundergamers6364 2 ปีที่แล้ว +2

    Mam please 🙏 use board mam don't waste paper 🙏🙏

  • @vijayad8119
    @vijayad8119 4 ปีที่แล้ว +1

    Nice explanation mam

  • @prakashconsultancy
    @prakashconsultancy 3 ปีที่แล้ว +1

    in 3 case if p less than l what we have to do

  • @HemanthKumar-yk8iy
    @HemanthKumar-yk8iy 4 ปีที่แล้ว +1

    Thanks

  • @JavaAidTutorials
    @JavaAidTutorials 4 ปีที่แล้ว +1

    Nice video

  • @marlapudimanoj8668
    @marlapudimanoj8668 4 ปีที่แล้ว +1

    Nice explaining

  • @nipendersingh3062
    @nipendersingh3062 3 ปีที่แล้ว +2

    madam suhagraat ke turant baad start kar diya kiya?

  • @oldspiritualsongs2055
    @oldspiritualsongs2055 3 ปีที่แล้ว

    thanks

  • @rimpa3026
    @rimpa3026 3 ปีที่แล้ว

    Thank u mam

  • @dadiarun6385
    @dadiarun6385 2 ปีที่แล้ว

    Tqq mam

  • @rajanikour1818
    @rajanikour1818 ปีที่แล้ว +1

    Neeche diya gaya hai Quick Sort algorithm ka ek example Hindi mein:
    Sochiye humare paas ye list hai: [6, 8, 3, 9, 2, 5]
    Kadam 1: Ek pivot element chunein (is case mein, aakhri element 5 chunte hain).
    Kadam 2: Pivot ke aas paas list ko partition karein. Pivot se chote sabhi elements ko pivot ke baayein aur pivot se bade sabhi elements ko pivot ke daayein shift karein.
    Partitioning Kadam: [2, 3, 5, 9, 8, 6]
    Kadam 3: Quick Sort algorithm ko recursive tareeke se pivot ke dono taraf wale sublist par lagu karein.
    Baayein wala sublist: [2, 3]
    Daayein wala sublist: [9, 8, 6]
    Baayein wale sublist aur daayein wale sublist ke liye Kadam 1-3 ko phirse repeat karein.
    Baayein wale sublist ke liye:
    Ek pivot element chunein (is case mein, pehla element 2 chunte hain).
    Partitioning Kadam: [2, 3]
    Baayein wala sublist pehle se hi sorted hai kyunki usmein sirf ek element hai.
    Daayein wale sublist ke liye:
    Ek pivot element chunein (is case mein, aakhri element 6 chunte hain).
    Partitioning Kadam: [6, 8, 9]
    Daayein wala sublist pehle se hi sorted hai kyunki usmein teen elements hai.
    Kadam 4: Sorted sublists ko combine karein. Sorted list unsorted baayein wale sublist, pivot element, aur unsorted daayein wale sublist ko jodkar banai jati hai.
    Result: [2, 3, 5, 6, 8, 9]
    Quick Sort ka istemal karke sorted list banegi [2, 3, 5, 6, 8, 9].
    Quick Sort mein mukhya tatva hai pivot element chunna, partitioning karna aur fir us partition ko recursively sublist par lagana, jab tak puri list sort hojaye.
    Quick Sort ka fayda hai ki iska average-case time complexity O(n log n) hota hai aur ye in-place sorting hai, matlab iske liye alag se memory ki zaroorat nahi hoti hai.
    Halaanki, Quick Sort ka worst-case time complexity O(n^2) ho sakta hai agar pivot selection sahi nahi hai, jiski wajah se kuch scenarios mein inefficient sorting ho sakti hai.
    Mujhe ummeed hai ki ye example aapko Quick Sort algorithm samajhne mein madad karega. Agar aapke paas koi aur sawal hai toh zaroor puchiye!

    • @yaardixit9809
      @yaardixit9809 10 หลายเดือนก่อน

      thanks bhai ye mast tha ye apne class ke sabhi bacho ko dikhaunga it will help them for sure😂💗

    • @yaardixit9809
      @yaardixit9809 10 หลายเดือนก่อน

      substitution method ka kr skte ko?

  • @eswarsai5312
    @eswarsai5312 3 ปีที่แล้ว

    Tnq mam

  • @user-lm5hm2zp6b
    @user-lm5hm2zp6b 10 หลายเดือนก่อน

    Ma'am kab left se compare karna hai kab right se samajh nahi aa raha hai

  • @AkashdeepDam
    @AkashdeepDam 4 ปีที่แล้ว +1

    Very beautiful mehndi, mam... Nice explanation...😊

  • @kutarevijay6569
    @kutarevijay6569 3 ปีที่แล้ว +1

    mam I saw vedio to see ur mehndi design

  • @roshnimansore3581
    @roshnimansore3581 4 ปีที่แล้ว +1

    mem partition ka algorithm kaha he please mem uska bhi algorithm banaiye

  • @muskpline202
    @muskpline202 ปีที่แล้ว +1

    Padhana nai aata to kyu aate ho exam se pehle ka time waste karne ....faltu panti ki he algorithm and example dono me .... successfully wasted my time before exam ! 😔

  • @menapatigowrishankar6236
    @menapatigowrishankar6236 4 ปีที่แล้ว +2

    Madam nice expalnation.but you no need to say sorry some mistakes we can while solving

    • @babjssk
      @babjssk 4 ปีที่แล้ว +1

      Right

  • @user-mv5ne6ve6e
    @user-mv5ne6ve6e ปีที่แล้ว

    why your hand is overcolored?

  • @shetty5121
    @shetty5121 11 หลายเดือนก่อน

    How u took pivot?

    • @yaardixit9809
      @yaardixit9809 10 หลายเดือนก่อน

      there are two best ways we can pick pivot
      1st one is by selecting middle element of an array as an pivot
      2nd one is by selecting random element of an array as an pivot .

  • @madhumadapala5686
    @madhumadapala5686 3 ปีที่แล้ว +1

    Onces you have shown your face

  • @shailendraverma1808
    @shailendraverma1808 3 ปีที่แล้ว +1

    this is wrong, how would you apply this for 5,40,10,20

  • @SurajMaurya-qt7ns
    @SurajMaurya-qt7ns 3 ปีที่แล้ว

    wowwhh ma’am apne mendhi lagai h 😱😱😂😂

  • @areya11k7
    @areya11k7 3 ปีที่แล้ว

    Mai kya thekhu yaar lecture ya #mehdi. ...

  • @sawfall9662
    @sawfall9662 9 หลายเดือนก่อน

    you are teaching in wrong way must shift right pointer too