Lecture - 14 Red Black Trees

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
41,837
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Sep 24, 2008

Lecture Series on Data Structures and Algorithms by Dr. Naveen Garg, Department of Computer Science and Engineering ,IIT Delhi. For more details on NPTEL visit http://nptel.iitm.ac.in

Category:

Education

Tags:

License:

Standard YouTube License

Link to this comment:

Share to:
see all

All Comments (16)

Sign In or Sign Up now to post a comment!
  • Sir I required this Lecture PPT.

  • Thanks Sir..

  • i ahve an exam soon hahah and i don't was able to follow the course this course is cool thx :)

  • Damn I just love the intro music. So chill.

  • @chaimnatan 1 possible situation (and probably the most frequent) is on the 2nd "Insertion" into a RB tree. Lets say you insert 5 as the first node into the RB tree. Now we have 1 node in our RB tree and (since it is the root) must be black. Then we insert 7 into the tree. Since 7 > 5, it must go on the right side. If we were to color this node black, the external nodes of 7 would have two black ancestors where as the external node of 5 (its left node) only has 1.Therefore the 7 node must be red

  • amazing

  • What makes a node red? vs black?

  • better use the term "child" rather than son.. Otherwise a female marker might get pissed off...

  • Many thanks - this helped immensely not only to implement a red-black tree, but to understand what was happening behind the deletion algorithm, and why it requires at most 3 rotations (although the particular case of 3 rotations, 2.1.1, when my red brother's right son has a red right son, isn't explicltly shown, but it's implied).

    Overall, well explained and clearly shown in the slides. Thanks :)

  • U r rite .... I haven't seen da whole lecture ... Bt wat u r saying is rite

    TP

    IITK

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