Red-black trees in 3 minutes — Rotations

preview_player
Показать описание
Rotations in the context of red-black trees.

Sources:

Рекомендации по теме
Комментарии
Автор

It is very sad that you stopped making those amazing videos...

DVZM.
Автор

You didn't get enough credit for these, they are appreciated it.

leod
Автор

I love the conciseness of these videos, Michael! Keep up the great work! One recommendation I have is to make the pseudocode you provide more approachable by re-labeling the variables to match your diagrams.

andrewmartin
Автор

Please post the video of Red-Black Tree Deletion as well

piyushnariani
Автор

I've read elsewhere that the maximum height of a red-black tree is 2 * log(n + 1). This is not to say that this isn't a fantastic series of videos, because it is and they've helped me substantially! Thank you for that!

NOLAMarathon
Автор

You make great videos about algorithms. Please keep it up and produce more videos like that! Short, easy and very helpful.

AnonymousDeveloper
Автор

Your videos are awesome! Straight to the point and short compared to the others on youtube.

TheEpicBlend
Автор

Thank you for you picture illustration. It's super clear!!!!

賊貓
Автор

Congrats Michael and thanks, your videos are amazing. I wish my college professor were as good as you.

vhcsilvaa
Автор

superb explanation within 3.04 mins.. wow... good luck...

Randeesha
Автор

Dear Michael, Thank you very much for this video. You are my saviour :)

merinkjacob
Автор

The other important fixup for Red-black trees is recolouring.
A combination of recolouring and rotation is done on inserts & deletes to fixup red-black tree violations.
Fixups go in the direction of the root node.
For Insert, a maximum of 2 rotations are required.
For Delete, a maximum of 3 rotations are required.

stephenhowe
Автор

Bro thank you the explanation was so good you saved me👍👍

riccardofratuzztazz
Автор

in few years if you will hold this level of video's you;ll be number one youtuber of informatics xD

PL_chochlikman
Автор

Useful, thanks so much, I was confused on rotating but it's actually simple

DavidEspinosa
Автор

ok, i can understand why you rotated the 10, 5, 2 and the 12 since they're all connected. But why did you flip 8 to the other side of the tree?? No explanation. Just confused. Even if you keep the 8 on the same side in either rotation instead of changing it to the other side, it would still be balanced.

claytonwasenius
Автор

your videos are very helpful, keep up the good work!!

husnainabbas
Автор

I wish it was explained like that in data structure lectures. :D

leenlovesdancing
Автор

By doing a rotation we are simulating the right order of inserting node

_mrix_
Автор

so if I understand and did it correctly, is the solution to the the tree shown at 0:22 this?

12
/ \
8 15
/\ / \
5 9 13 23
/-(red)
19

king_esteban
join shbcf.ru