AVL trees in 5 minutes — Intro & Search

preview_player
Показать описание
Introduction to AVL trees including the search method.

Sources:

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

Thank you so much, idk why I was struggling so much with other explanations

Nickdabulder
Автор

My professor shows us some of your videos sometimes during class ( algortithms and data structures). Big up!

migueltmpereira
Автор

Nice Video! i like your short videos.
isn`t the height defined as number of edges from the root node to the leaf node, so in your example it would be 4 at 50?

bennikllr
Автор

I just discover this channel and u, thanks a lot for this video so clean. Big up for u!!!!

imnotme
Автор

To calculate the Balance factor, dont we need to use "Right subtree - Left subtree"? Because in ur example it seems like ur calculating it with "Left subtree - Right subtree". Thats the values are inverted when it comes to positive or negative. Or am I just tripping??
Still very nice playlist, the RB Tree one was very useful.

ayoub
Автор

thanks a lot for your videos, they are quite simple and informative !

sarvarbazarov
Автор

shouldn't the height of the first node will be 4?

ccs
Автор

Am I tweaking? I thought the height was the number of edges. Like if you had A->B->C, the height would be 2.

tripletriplezero
Автор

in 02:35 in the not avl tree, is it not avl tree to becuase the left child (25) and the right child (75) differs also more than 1? as 3-1=2

NZ-bgec
Автор

Great vid! But why is the height variable set to 1 upon instantiation?

fredericoamigo
Автор

Is there any difference between the big-O with the "-" in the middle with the big-O without it?

oanminhquan
Автор

Wrong! The height of leaf nodes is always 0. Not 1.

jimj