Red-black trees in 4 minutes — Intro

preview_player
Показать описание
An introduction to red-black trees.

Sources:

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

I still remember in past, I had to go through a long list to find his video. Now, when I searched it, it came on top! :D

arpitchristy
Автор

Studying for a Data Structures Final and your videos are really about to save me. Thanks man

DarkDay
Автор

A red-black tree is a binary tree that satisfies the following red-black properties:
1. Every node is either red or black.
2. The root is black.
3. Every leaf (NIL) is black.
4. If a node is red, then both its children are black.
5. For each node, all simple paths from the node to descendant leaves contain the
same number of black nodes.

EskyDinpuiaChhangte
Автор

dude you just nailed it simple short precise and a clear explanation no trash talking respect from india man

sj
Автор

Thank you! This was so much easier to understand then my school textbook. You speak clearly and concisely. Great visuals and loved the short video time!

ata
Автор

I am struggling for few hours ow to understand Red-black trees, and your videos are finally the ones that made it clear to me. Thanks and congrats! You won a new subscriber :)

Tourach
Автор

Note: Leafs with value Null (aka NIL) are by default Black. This means a representation of a tree with a red "Leaf" can correctly be a Red-Black Tree since its children are Null, which are Black.

ante
Автор

Great videos, very clear and understandable. Keep up the good work!

MichaJabczynski
Автор

A red-black tree is a binary search tree with one extra bit of storage per node: its
color, which can be either RED or BLACK. By constraining the node colors on any
simple path from the root to a leaf, red-black trees ensure that no such path is more
than twice as long as any other, so that the tree is approximately balanced.

EskyDinpuiaChhangte
Автор

u say root funny, but thanks for the clear and concise explanation!

ca
Автор

This is AWESOME. Love this video, hope you become more famous

juliajeehyunkim
Автор

I love the way the video is made. Perfect!!

yadhunandhanr
Автор

to be honest, I did not understand everything in this video. E.g. 1:50 . All paths from a then you add "1" and a "2" next to the five. Don't know what are you counting there, dont know what the numbers are related to?! If you count the NILs then just put the 1 to the left NIL and the 2 to the right NIL....

CaveDave
Автор

Absolutely killing it, dude. Keep going and don't stop. Easy subscribe. Thx.

ryandavis
Автор

Aren't 9, 13 and 23 leaf nodes.. Can I know why they are in red and not in black ? Please help me understand..

muralikrishnaraju
Автор

Best and simplest explanation on insertion of R-B tree on youtube. Please upload video on deletion.

NirajSingh-nvjb
Автор

I was confused that the Node 5 is black. However, when I watched the video again, It just said all red nodes have black nodes children, but not all black nodes have red children. So, the reason why Node 5 is black is to have the same black height. Right?

honglichen
Автор

I'm not sure what you mean when you say they have a guaranteed height of O(log n) -- I thought O() is used to characterize performance -- and you could just say that the guaranteed height is < log n...

firezdog
Автор

No words ... hoW to be thankful
Great tutorial🔥👍

fasihkhan
Автор

when it says that all paths from a node to its NIL descendants contain the same number of black nodes, how many black nodes does node(9) have? Does it have 1? if so doesn't node(8) have 2 black nodes to NILL?

ethanray