Priority Queue | Data Structure | Python Tutorials

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

КОМЕНТАРІ • 60

  • @saraswatimondal5136
    @saraswatimondal5136 3 роки тому +10

    One of the most underrated yt coding channel

  • @carefree_ladka
    @carefree_ladka 2 роки тому +10

    She's just great at explaining this stuff. Thank you :)

  • @TheMako101
    @TheMako101 Рік тому +1

    Nice and simple explanation, thank you 🙂

  • @ytg6663
    @ytg6663 3 роки тому +7

    I am Looking to implement Dijkstras Algo using PQ.. thanks for this.

  • @meghanathreddy875
    @meghanathreddy875 4 роки тому +3

    hi Sis,these are really worth videos thanks a lot for sharing the content .
    Guys who are reading the comment and really want to learn Data Strucures in Python,here is the Amulya Sis who always explained in a laymen terminology so that everyone understands.
    And one small request guys, since this sister is doing this much for us,pls donot skip the adds,just watch fully ,pls donot skip, so that our sister will get the income. This is the least way we can help her.
    Thanks SIS

  • @migy220
    @migy220 3 роки тому +4

    Amulya's voice and voicing out her words are cute...its like a kid

  • @sanketsuryawanshi
    @sanketsuryawanshi 4 роки тому +2

    Thanks your voice is so nice 👍🏻 gifted by god with sharp mind

  • @syedowaisaliraza
    @syedowaisaliraza 2 роки тому +3

    Kindly answer this question
    We have an array of 5 elements: [4, 8, 1, 7, 3] and we have to insert all the elements in the max-priority queue. First as the priority queue is empty, so 4 will be inserted initially.
    Now when 8 will be inserted it will move to front as 8 is greater than 4. While inserting 1, as it is the current minimum element in the priority queue, it will remain in the back of priority queue. Now 7 will be inserted between 8 and 4 as 7 is smaller than 8.
    Now 3 will be inserted before 1 as it is the 2nd minimum element in the priority queue.

    • @lakshyamongacompany
      @lakshyamongacompany Рік тому

      You can create your own class, suppose "myQueue" and inherit "list" class in it (to use all methods an attributes that "list" class provides")
      In the "append" def function. Take the argument for "what to add" and after it mention the function to automatically sort the queue (self.queue = self.queue.sort(), where self.queue stores the list/queue you are using)

    • @SaidalliBasha
      @SaidalliBasha Рік тому

      ​DUTHFS0E3R4 8 ustaad 1:51 @@lakshyamongacompanyrfffggghtyyyhhhhhhyhgvghhtt67iomm. Moon moon ,takuvdi moon jisez

  • @anonymoushindustanti
    @anonymoushindustanti 3 роки тому +5

    Ma'am if any more topics is left to make for DSA in python, please make it and complete the series. I am following this series for my python dsa. Ma'am sorting, bubbling are not in this series please look into it.

  • @pravasinipati5128
    @pravasinipati5128 4 роки тому +3

    Your video’s are so easy to understand. Could please make one for heap sort with explaining code.

  • @beatboss9275
    @beatboss9275 4 роки тому +6

    7:04 So Priority class will give high priority to small value, then what about bigger values. We can use list but as you said its slower and not the first choice. Is there any other option beside list and deque function for bigger values.
    BTW the Playlist is amazing so far, Thanks.

    • @AmulsAcademy
      @AmulsAcademy  4 роки тому +2

      Thank you so much :)
      You can use binary heap :)

  • @MrUmesh49
    @MrUmesh49 5 місяців тому

    Can I get the source code for last one q.append((2,"a")) and for the pop() function. and what if the priority is same for both?

  • @bitsbytes1780
    @bitsbytes1780 4 роки тому +4

    Why there is no option to have notification bell for this playlist? Btw Thanks a lot for this series

    • @AmulsAcademy
      @AmulsAcademy  4 роки тому +3

      Hit the bell icon after subscribing the channel to get notifications.
      Pleasure :)

  • @pranki2254
    @pranki2254 3 роки тому +1

    that was quite helpful, thank you

  • @the_mellobean
    @the_mellobean Рік тому

    What if we have a priority queue with strings, is there a way we can set the priority without alphabetic order?

  • @ayushmathur154
    @ayushmathur154 3 роки тому

    Is priority queue module and heap queue model is same

  • @vishalv3031
    @vishalv3031 3 роки тому

    You explained about the lowest num first priority for highest number

  • @shreehari2589
    @shreehari2589 4 роки тому +3

    When are linked list and hash maps etc are coming? Eagerly waiting for them please upload them soon

  • @riyakhandelwal3409
    @riyakhandelwal3409 3 роки тому +1

    this is very helpful :")

  • @saipavan77
    @saipavan77 3 роки тому +1

    Nice explanation

  • @makeyoulaugh5616
    @makeyoulaugh5616 3 роки тому

    Mam what bout circular queue?

  • @sanketsuryawanshi
    @sanketsuryawanshi 4 роки тому +1

    Do you have video on pandas and numpy ?

    • @AmulsAcademy
      @AmulsAcademy  4 роки тому

      NumPy : yes we have few videos on that
      Pandas: NO

  • @YouMeverse
    @YouMeverse 3 роки тому

    thank you mam.

  • @_India2047
    @_India2047 4 роки тому

    Madam, can you please let me know by which application you recording the screen.

  • @kironpaul7581
    @kironpaul7581 4 роки тому +1

    Please do videos on Graph,tree doubly linked😪😪🙏🙏

  • @adityasingh-w5m9q
    @adityasingh-w5m9q 3 роки тому

    how to get lenth of a prioroity queue

  • @katchoroweb4616
    @katchoroweb4616 4 роки тому

    Nice your cors

  • @niteshanthony2324
    @niteshanthony2324 2 роки тому +4

    Hey everyone ik its pretty late but i just wanna tell u all to take it easy, relax, pray to GOD and have and trust in GOD as well as believe in his one and only son Jesus and to repent of your sins. hope u have an amazing day

  • @hometvfirestick
    @hometvfirestick 3 роки тому

    thanks

  • @ravishankarpal5358
    @ravishankarpal5358 4 роки тому +1

    ma'am pls make the video on linked list

  • @iliyashusain3058
    @iliyashusain3058 2 роки тому

    Mam can u give this data str pdf??

  • @selvanm2872
    @selvanm2872 4 роки тому +1

    👍

  • @the.rajkumar.sawant
    @the.rajkumar.sawant 4 роки тому

    Why you changed name??

  • @gobinathgunasekaran8731
    @gobinathgunasekaran8731 4 роки тому

    Madam, pls post how to run pandas

  • @universal4334
    @universal4334 4 роки тому +3

    Tip for subs :- Never use pop with index it results O(n^2).Try to avoid using it
    Never use insert gives same result as like pop with index 😉 O(n^2)

    • @riyakhandelwal7850
      @riyakhandelwal7850 4 роки тому

      So then which other way ?

    • @universal4334
      @universal4334 4 роки тому

      @@riyakhandelwal7850 if you have more work on deleting and inserting then go for linkedlist it makes your job for O(1)

  • @sirus5691
    @sirus5691 4 роки тому +2

    How to write a python program for
    A
    B C
    C D E
    D E F G
    E F G H I

    • @AmulsAcademy
      @AmulsAcademy  4 роки тому +5

      n = int(input("rows:"))
      k = ord("A")
      for i in range(n):
      k = ord("A")+i
      for j in range(i+1):
      print(chr(k),end=" ")
      k=k+1
      print()
      :)

  • @sirus5691
    @sirus5691 4 роки тому +1

    How to write a program for
    A
    B A
    C B A
    D C B A
    E D C B A

    • @AmulsAcademy
      @AmulsAcademy  4 роки тому

      You can use ascii value of alphabets for that :)

    • @sirus5691
      @sirus5691 4 роки тому

      Okay mam

  • @imtiyazhossain110
    @imtiyazhossain110 3 роки тому

    see you not for mind