QUICK SORT WITH EXAMPLE

Поделиться
HTML-код
  • Опубликовано: 25 окт 2024

Комментарии • 108

  • @ZinduZatism
    @ZinduZatism Год назад +2

    Great explanation, best on the net, thanks alot, i checked many tutorial but i did not have any clue , but u described precisely

  • @umeshnetha7607
    @umeshnetha7607 5 лет назад +24

    Sir can u explain the quick sort program in next video...

  • @Db_BW
    @Db_BW 5 лет назад +15

    You always try to make things simple!

  • @Akbarvlogss
    @Akbarvlogss 3 месяца назад +1

    I'm actually searching for your video ❤

  • @randomqueen373
    @randomqueen373 4 года назад +3

    Sir, u gave condition for swapping, i>j and i

  • @damonsalvatore-r1y
    @damonsalvatore-r1y 3 года назад +6

    Thanks for the valuable content sir. Sir your algorithm is very simpler than geeks for geeks also. Always you make things easier to understand. Once again thank you sir 🙏🙏🙏

    • @sundeepsaradhi
      @sundeepsaradhi  3 года назад +2

      Thanks for your support towards our channel.

  • @Rahul-ik4fd
    @Rahul-ik4fd 5 лет назад +12

    Sir
    I need a example of taking middle element as a pivot

  • @sasikalakala1854
    @sasikalakala1854 4 года назад +6

    Thanks you sir...ur explanation is very clear...but I felt that,it is very complicated and confusing with lots of calculation steps

  • @indusmily497
    @indusmily497 3 года назад +1

    Sir ur veidoes are so helpful in exam time . Thanks for providing

  • @umak4284
    @umak4284 11 месяцев назад

    I can understand clearly thank you so much sir 😊

  • @kartickchandramanna267
    @kartickchandramanna267 Год назад

    Awesome lecture, Thank you sir 🙏

  • @ramya.tummalacharla
    @ramya.tummalacharla 3 года назад +1

    Thank you very much sir
    Ur explanation is very easy to understand when compared to my lecturer's explanation
    I will refered to my frnds also❤️🙏

  • @ghantaharshith504
    @ghantaharshith504 3 года назад

    Thanks sir, your videos help me a lot.

  • @kirthikrajkamaraj278
    @kirthikrajkamaraj278 4 года назад +5

    Sir at 22:43 (a[j]>pivot, this condition is going on), pivot is initially 10 but you took 20 as pivot and and did10>20 which is wrong.cause after decrementing j is at 0th index which is 10 and pivot is also 10 so it should be 10>10

    • @nidhisingh3815
      @nidhisingh3815 4 года назад +1

      Yeah exactly i am also stuck at this point... And in next recursion why should we take 'i' as 10 and pivot whereas 'j' as 20 why so?

    • @Ashifa_shaikh
      @Ashifa_shaikh 3 года назад

      Now 11 months have been passed away., Did you guys get your answers from anywhere?

    • @amalahakingsley6669
      @amalahakingsley6669 2 года назад +1

      You have an eagles eye, He made a mistake but the outcome is 'false' just as he stated, invariably, he's correct ... (10>10 ,10 is not greater than 10 so it is 'false'). Therefore, 10 is j and also the pivot, it can't be swapped. Recall, when i > j, j =0 and i = 1. swap( a[j],pivot) .

  • @govindtandon4866
    @govindtandon4866 3 года назад

    Thank u for explaining in so easy language

  • @DailyDemo1
    @DailyDemo1 2 года назад +1

    thank you so much sir for this valueable content.. it really helps me ..

  • @lavanyanali7258
    @lavanyanali7258 3 года назад

    Really nyc sir.. understood this video

  • @sanjayraj-fs9wy
    @sanjayraj-fs9wy 4 года назад +2

    sir i wached all ur videos and i like it and pls explain all code also sir

  • @gayathrit5599
    @gayathrit5599 4 года назад +2

    thank you sir.ur explanation is really good . sir please upload videos on hashing and it's functions in data structures

  • @vamsikrishnasai1682
    @vamsikrishnasai1682 4 года назад +1

    What step should follow ,at starting if there is no element greater than pivot? Where I should keep i position?

  • @roots2105
    @roots2105 2 года назад +1

    Thank you so much sir...

  • @Bhargav1245-g7dc
    @Bhargav1245-g7dc 2 года назад

    Sir I understand clearly ,but sir is there any chances to give the repeated elements in the question like 2,5,4,7,6,2 like this

  • @chimepalden7073
    @chimepalden7073 2 года назад

    22:41 isn't it 10 > 10 instead of 10 > 20 as the pivot is 10? also did not swap 10 and 20 when i is not less than j. little messed up.

  • @gurudattaknkimalla1498
    @gurudattaknkimalla1498 4 года назад

    Superb explanation sir👍

  • @vamsikrishnasai1682
    @vamsikrishnasai1682 4 года назад

    Anna NV super explained, keep it up and do more vedios on data structures

  • @scarlettheartfilia1460
    @scarlettheartfilia1460 3 года назад

    Sir I have a doubt. I have problem with my function to find pivot position.And my input={60,50,40,30,20,10} output comes like {0,20,30,40,50,60}. And the code is
    int findpivot(int arr[],int low,int high)//FINDING PIVOT POSITION
    {
    int pivot=low;
    int i=low+1,j=high,temp;
    if(i

  • @bajishareef6104
    @bajishareef6104 2 года назад

    It is helpful sir thank you

  • @Vt29107
    @Vt29107 Год назад

    22:42 in [j>pivot] j-- then here pivot is 10 so how [10>20], I have confused

  • @ganeshponmalar..3168
    @ganeshponmalar..3168 3 года назад

    sir make video program in quick sort...thanks for making this video...

  • @divyaaharone1440
    @divyaaharone1440 2 года назад +1

    thank u very much sir..can u write a programme for quick sort

  • @fanfull509
    @fanfull509 4 года назад

    Sir here last step we have to swap j and pivot element sir. Will u please explain it??

  • @keerthana5549
    @keerthana5549 2 года назад

    Thank you so much sir

  • @3PercentOcean
    @3PercentOcean 2 года назад

    nice explanation sir

  • @priyankam2092
    @priyankam2092 3 года назад

    Hi sir ur vedios r awesome easy to understand . Data structures and algorithms in c programming I want parsing arithmetic expression Plzzz do the vedio sir

  • @Sairam30722
    @Sairam30722 4 года назад +1

    Tq sir good lecture

  • @amitvlogs8520
    @amitvlogs8520 5 лет назад +1

    Nice Sir Thanks..Also make videos on C++

  • @kavyaravuri405
    @kavyaravuri405 3 года назад

    Give quick sort explanation for this example
    15,5,100,28,13,6 from first partition

  • @alluchandrasekhar2992
    @alluchandrasekhar2992 4 года назад

    Good explanation

  • @beabismar1118
    @beabismar1118 Год назад

    Sir, can i ask an example of real life scenario using quicksort

  • @vrufus2372
    @vrufus2372 4 года назад +1

    Sir in right side of pivot case
    Around 20-21min
    We have to take i=pivot+1=3
    J=5
    But u took I=0and j=2??????????

  • @AmmuAmmu-yp2ip
    @AmmuAmmu-yp2ip 3 года назад

    Sir in second step our j value is 40 sir but why u take pivot value at every step in j

  • @nikhilsai3362
    @nikhilsai3362 2 года назад

    sir when i=j , what should we do?

  • @padminisowjanyabommaganti6012
    @padminisowjanyabommaganti6012 5 лет назад +3

    Like your vedios sir, but we want in less than 10 min

  • @kuttychuttybarbies1007
    @kuttychuttybarbies1007 Год назад

    Sir kindly upload greedy algorithm as soon as possible

  • @ganusha7286
    @ganusha7286 3 года назад +1

    Tq sir 😍

  • @srihari-gn6iq
    @srihari-gn6iq 2 года назад

    supper sir thank you so much

  • @ravitejauribindi4868
    @ravitejauribindi4868 5 лет назад +2

    sir at 28:30 how i value becomes 2 sir?is i=1 there

    • @tausifahmad2007
      @tausifahmad2007 5 лет назад +7

      Bcoz a[i] =40 and pivot value is 50
      Now, condition a[i]

  • @ramyachittiprolu707
    @ramyachittiprolu707 10 месяцев назад

    Trace the quick sort algorithm to sort the list C, O, L, L, E, G, E in alphabetical order idi ans pettara sir please try chesanu nenu kani ravatledu

  • @VedangSharma-pp3kf
    @VedangSharma-pp3kf 4 года назад

    Sir please make a video for program of quick sort....

  • @lifeofbillionaires9542
    @lifeofbillionaires9542 4 года назад

    Sir is there any +infinity at the high side

  • @harishmamohan1853
    @harishmamohan1853 4 года назад

    Thank you sir ❤️❤️❤️❤️❤️

  • @theepalapudiprasanth2663
    @theepalapudiprasanth2663 3 года назад

    Thanks annaya

  • @Lilly-q3b
    @Lilly-q3b 3 года назад

    Thank you sir

  • @phanich7423
    @phanich7423 2 года назад

    Didnt understand j> piviot in ie 10>10 j but u ae mention 10>20

  • @vinothvk2711
    @vinothvk2711 5 лет назад

    In second partition how taking the 50 as pivot....

  • @havinashc1531
    @havinashc1531 4 года назад

    Thank u sir 👍👍

  • @shoheelkaja9574
    @shoheelkaja9574 5 лет назад +3

    Pls teach minimum spinning tree

  • @pragatians9855
    @pragatians9855 2 года назад

    sir pivot means

  • @kattaaarthi4285
    @kattaaarthi4285 4 года назад

    Sir u r making us confuse with pivot values...u r saying that..30 is pivot value . At the same time u r saying that.. starting value is pivot .. make it clear

  • @harisha4621
    @harisha4621 4 года назад

    Sir can u please make the Redblock tree insertion and deletion tutorial

  • @senthilmurugan2066
    @senthilmurugan2066 4 года назад

    Thank you sir ☺️

  • @parameshk4464
    @parameshk4464 4 года назад

    nice sir

  • @mayuriwathore832
    @mayuriwathore832 5 лет назад

    Make vedios on c++ programming language

  • @umashankarboga6283
    @umashankarboga6283 4 года назад

    Explanation sir.............................Explanation Anthe .........................!!!!!

  • @bavidoddisailu5587
    @bavidoddisailu5587 5 лет назад

    Can you make a tally learning vedios

  • @statusking_630
    @statusking_630 Год назад

    Sir we want the program on quick sort

  • @programingandmotivation9250
    @programingandmotivation9250 4 года назад

    Did you write algorithm

  • @rakeahponnana7758
    @rakeahponnana7758 5 лет назад

    Meru super sir

  • @vaibhavtiwari6598
    @vaibhavtiwari6598 5 лет назад

    Thanks....sir

  • @akkinapallivenkatesh8320
    @akkinapallivenkatesh8320 2 года назад

    By hearing background voice I can say that you are TELUGU PERSON

  • @kattaaarthi4285
    @kattaaarthi4285 3 года назад

    Program? Sir

  • @vrufus2372
    @vrufus2372 4 года назад +1

    Please code it for c++

  • @RakibulIslam-tm4cm
    @RakibulIslam-tm4cm 5 лет назад

    thanks sir.

  • @ravulaprashanth1033
    @ravulaprashanth1033 2 года назад +1

    little bit confusion

  • @ranjithdurgunala
    @ranjithdurgunala 2 года назад

    Sir explain with program

  • @murthybalam647
    @murthybalam647 3 года назад

    Simple program for quick sory and bubble sort please sir

  • @523priyanka9
    @523priyanka9 4 года назад

    Sir please explain quick sort program

  • @prasanthmaddiboina4151
    @prasanthmaddiboina4151 4 года назад

    Sir please write code also

  • @rammohankola1380
    @rammohankola1380 3 года назад

    Some confusion
    Explain in clear

  • @laxmikumari-sv2xh
    @laxmikumari-sv2xh 4 года назад +1

    Sir I have a doubt I think at 22:50, there should be 10 greater than 10 .

    • @sharwanajith6835
      @sharwanajith6835 4 года назад

      10 is less than equal to 10 so condition pass n proceed for further increment of i

    • @amalahakingsley6669
      @amalahakingsley6669 2 года назад

      You are correct. it should not be 10>20, although he said it's false which is right, 10>10 will also be 'false' because 10 is not greater than 10. So it's also false.

    • @amalahakingsley6669
      @amalahakingsley6669 2 года назад

      @@sharwanajith6835 The condition requires only (> greater than), if not, then it's 'false'. 10 means 10 is not greater than 10 so it's false

    • @amalahakingsley6669
      @amalahakingsley6669 2 года назад

      The condition requires only (> greater than), if not, then it's 'false'. 10 is not greater than 10, it's false. no increment

  • @155.p.vijayaraju5
    @155.p.vijayaraju5 2 года назад

    Sir mari two elements same ayite

  • @raajpateriya5269
    @raajpateriya5269 5 лет назад

    Why you don't make video in hindi to better explanation your English such a confusing more than question 🙋

  • @ravulaprashanth1033
    @ravulaprashanth1033 2 года назад +3

    not understant

  • @dileepchandra2414
    @dileepchandra2414 5 лет назад

    54 26 93 17 77 31 44 55 20 please solve the problem sir i am confused on quick sort

  • @vinothvk2711
    @vinothvk2711 5 лет назад

    Bro pls I need tis in java code format ...

    • @iam_hindhu
      @iam_hindhu 4 года назад +2

      public class QuickSort {
      public static void main(String[] args) {
      int ary[] = { 1, 30, 20, 10, 50, 60, 40 };
      System.out.println(" Length Is ; " + ary.length);
      print(ary);
      sort(ary, 0, ary.length - 1);
      print(ary);
      }
      private static void sort(int[] ary, int lowerBound, int upperBound) {
      int position = partation(ary, lowerBound, upperBound);
      partation(ary, lowerBound, position - 1);
      partation(ary, position + 1, upperBound);
      }
      private static int partation(int[] ary, int lowerBound, int upperBound) {
      int pivot = lowerBound;
      int start = lowerBound;
      int end = upperBound;
      while (start < end) {
      while (ary[start] ary[pivot]) {
      end--;
      }
      if (start < end)
      swap(ary, start, end);
      else {
      swap(ary, end, pivot);
      }
      }
      return end;
      }
      private static void swap(int[] ary, int start, int end) {
      int temp = ary[start];
      ary[start] = ary[end];
      ary[end] = temp;
      }
      private static void print(int[] ary) {
      for (int i : ary) {
      System.out.print(i+" ");
      }
      System.out.println("");
      }
      }

  • @chayakumarsedutainment4799
    @chayakumarsedutainment4799 5 лет назад +2

    void quicksort(int low_index, int high_index)
    {
    int *p;
    p = &a[low_index];
    for(k=0;k

    • @sundeepsaradhi
      @sundeepsaradhi  5 лет назад

      hi
      i think you have missed the declaration part for function quicksort() so declare the function and your problem will be solved.
      Thanks for your interest and support towards our channel.

    • @chayakumarsedutainment4799
      @chayakumarsedutainment4799 5 лет назад

      @@sundeepsaradhi you mean I should declare the function globally?

  • @thulasirajugajaraju4176
    @thulasirajugajaraju4176 4 года назад

    Sir Telugu lo cheppandi sir

  • @sangeethamanekar2421
    @sangeethamanekar2421 5 лет назад

    Im nt understanding complier dedign sub up load diz sub