Added: 3 years ago
From: UCBerkeley
Views: 17,082
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (30)

Sign In or Sign Up now to post a comment!
  • mashofsh 7d hena men cmp2013 ><

  • thumbs up if he looks like the smart guy from criminal minds

  • جمييل يا وااد ايه الحلاوه دي

    مستحمي شكلك

  • good lecturer explains things really clearly thanks to Stanford for posting such great videos really good for a review before a test or if you are having trouble with a concept from class.

  • @cpowel2 UCBerkeley, not Stanford

  • @cpowel2 Actually UC Berkeley, not Stanford.

  • very good lecture

    

  • Goth teacher except without eye liner :)) hahahahahaha

  • UCBerkeley & Jonathan > nptelhrd & Naveen

    Just came here from there and they where really boring with all those slides with no writing!

  • This course is awesome! Thanks to Mr. Shewchuk and UCBerkeley for this.

  • great video, thanks a bunch. there is one concept i didnt understand. why in binary heap is it necessary for the child to be of greater value than the parent and why bubble the child if it is smaller?

  • @amalwithoutme

    cause that;s how a binary heap works and its not necessary for the parent to be less than its children this representation is done with a min binary heap there is a max binary heap where all children are less. Plus there are like a gazillion other styles of heaps, leftist, fibonacci, etc...

  • Very shallow coverage of the topic, when compared to the standard of MIT's OCW course 'Introduction to Algorithms' anyway.

  • watched till 21:00

  • Whoa at 43:40... How can finding the max key take linear time if this is a binary tree? the only way searching a binary tree would take O(N) time is if its degenerate... Shouldn't searching a complete binary tree takes O(log N) time?

  • @TheSemperFudge you mean a binary search takes O(log n) on a sorted list?

  • @appamstew Yes. If the way the tree is set up is so that the max is first, it would take O(1) time. Else its O(log n) time for anything else.

  • Comment removed

  • @TheSemperFudge it takes linear time because you have to traverse the entire tree in order to determine the maximum value.

  • Very good video. I have a final test tomorrow and this video is better than my teacher. Thank you

  • Just a minor nitpick: Total order forbids keys to be equal, i.e. both the question answered near the beginning and the insertion of a second "2" would be illegal. OTOH, it might be relevant to be able to do just that (i.e. require only a total preorder), but I don't know whether the algorithms still work with the weakened assumptions.

  • Well, here is the thing, i've read a couple of articles as well as a book that talk about this issue of priority queue and heap, and i got like an 80% out of the concept but still needed to overcome the weaknesses that i had on this topic. Now, when i watch this video clip i actually got the whole idea of such topic. Great explanations on step by step with clarifying any subtopic by giving great related kind of examples to accomplish the idea of in depth. Thankful for uploading such clip.

  • he is very smart

  • Very informative. I feel like I finally get it!

  • Just loved every single us univ. course i've attended at (every one virtually, sadly..) Anyways.. very clean lesson, on such an interesting topic. Thanks for sharing.

  • good comment

  • thanks

  • @blytqb 

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more