Heaps

Sdílet
Vložit
  • čas přidán 26. 09. 2017
  • To access the translated content:
    1. The translated content of this course is available in regional languages. For details please visit nptel.ac.in/translation
    The video course content can be accessed in the form of regional language text transcripts, books which can be accessed under downloads of each course, subtitles in the video and Video Text Track below the video.
    Your feedback is highly appreciated. Kindly fill this form forms.gle/XFZhSnHsCLML2LXA6
    2. Regional language subtitles available for this course
    To watch the subtitles in regional languages:
    1. Click on the lecture under Course Details.
    2. Play the video.
    3. Now click on the Settings icon and a list of features will display
    4. From that select the option Subtitles/CC.
    5. Now select the Language from the available languages to read the subtitle in the regional language.

Komentáře • 6

  • @himanshuranjan5575
    @himanshuranjan5575 Před 6 lety +10

    I can't believe how easily he has explained a tricky topic.

  • @prabhatjha653
    @prabhatjha653 Před 4 měsíci

    One quick question, as you have mentioned if i use sorted array as priority queue i would need O(n) time to insert and O(1) time to delete_max, so overall to process n jobs its O(n^2), why can't i insert in a binary search way needing O(logn) to insert and take out in O(1) time making it O(nlogn) and we do not have to move to heaps in that case. Am i missing something?

  • @mahendratonape27
    @mahendratonape27 Před 3 lety +1

    Sir could u pls explain operation complexity for 2 dimensional array for priority queue is order n root n...it should be only root n? Please correct

    • @dev_escape
      @dev_escape Před rokem

      See, root(n) is the complexity for 1 operation. So for n such operations, time complexity will be n*root(n).