Sorting: Bubble, Insertion, Selection, Merge, Quick, Counting Sort - DSA Course in Python Lecture 10

Поділитися
Вставка
  • Опубліковано 18 січ 2025

КОМЕНТАРІ • 28

  • @GregHogg
    @GregHogg  5 місяців тому +2

    Master Data Structures & Algorithms For FREE at AlgoMap.io!

    • @venkateshk816
      @venkateshk816 Місяць тому

      hey Greg so far you explained the nightmare of sorting(quicksort) very simply but it would be better to include the pivot elements with different positions like it is easy to do picking pivot at last or first but when considering the pivot at the middle element as a pivot i am getting little bit of confused in the part of list comprehension will you make a video of it or you can explain me in this chat

    • @dolamuoludare4383
      @dolamuoludare4383 Місяць тому

      Thank you greg

  • @harshgamer6105
    @harshgamer6105 6 місяців тому +7

    damn! this is by far the easiest tutorial on quick sort, others were making it too complex!, thanks greg!

  • @Everafterbreak_
    @Everafterbreak_ 4 місяці тому +3

    your content is incredible!

  • @SARABESHKANISHKARVAD
    @SARABESHKANISHKARVAD 2 місяці тому

    this is the easiest tutorial on quick sort I have seen

  • @creativeusername4400
    @creativeusername4400 6 місяців тому +8

    thank you greg you deserve a million subs!

    • @GregHogg
      @GregHogg  6 місяців тому +3

      Thank you! Trying my hardest to get there haha

    • @amaliyaakopyan9200
      @amaliyaakopyan9200 2 місяці тому

      @@GregHogg it is so pleasant to watch drawing how algorithm actually runs. this proper visualization makes understanding so much easier. btw, got count sort on my interview)

  • @SpaceTalon
    @SpaceTalon 6 місяців тому

    Nice!

  • @adm7r
    @adm7r 2 місяці тому

    i'm following algomap, but don't see a link to this video in any of the sections, why?

    • @GregHogg
      @GregHogg  2 місяці тому

      It's important theory, but not really that essential for most problems in my opinion

    • @adm7r
      @adm7r 2 місяці тому

      ​@@GregHoggmakes sense, thank you for the reply

  • @ashiyashaikh5275
    @ashiyashaikh5275 6 місяців тому

  • @RaghuPratap-of8xs
    @RaghuPratap-of8xs 5 місяців тому +1

    what is the use of i

    • @sayyidmogaka6754
      @sayyidmogaka6754 Місяць тому

      It’s used as an index when iterating through the array,i is the conventional one but you can use any letter

  • @prashanthnellutla6681
    @prashanthnellutla6681 3 місяці тому

    Counting sort was overwhelming and overkill

  • @produceutopia
    @produceutopia 6 місяців тому

    Doesn't your implementation of quick sort use O(n log(n)) space as you are creating many new lists?

    • @fantastic-b2m
      @fantastic-b2m 6 місяців тому

      it only creates one additional list which he named it as counts

    • @produceutopia
      @produceutopia 6 місяців тому

      No, he creates a new R and L list each time and passes them down

    • @GregHogg
      @GregHogg  6 місяців тому

      Yes but not all are present at the same time

    • @produceutopia
      @produceutopia 6 місяців тому

      @@GregHogg So at most at one time, they will have O(n) space in total?

  • @kleejensen8684
    @kleejensen8684 4 місяці тому

    What about heap sort???

    • @Ganesh-lm5dx
      @Ganesh-lm5dx 2 місяці тому +1

      he has a separate video for heap data structure and it is pretty easy to understand

  • @Chandhu987
    @Chandhu987 6 місяців тому

    explain with user input list

  • @Everafterbreak_
    @Everafterbreak_ 4 місяці тому

    are you drawing using the mouse? i need these skills. lmaooo