Тёмный

4.2 Splay Trees Insertion | with Example | Advanced Data Structures 

Uzair Javed Akhtar
Подписаться 3,7 тыс.
Просмотров 4 тыс.
50% 1

In this video, we learn the steps to to do insertion in Red Black Trees and also solve an example.
Timestamps:
0:00 Introduction
0:57 Insert operation
2:36 Splay Trees insertion example
Tags:
#splaytree #splaying #insertion #amortized #applications #AVLtree #RBtree #dsa #advanceddsa #datastructures #searchoperation #rotations

Опубликовано:

 

9 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 2   
@mohammadosman-zl9ph
@mohammadosman-zl9ph 4 дня назад
thx bro
@antoniovpi118
@antoniovpi118 Год назад
Thank you very much for the video. I have a question concerning zig-zig rotation: Let A be the node to be spayed, P its parent, S its sibling, U its uncle and G its grandparent, the way to do the rotations, as I understood, is as follows: Zig-Zig rotation: First AP and later AG G G A / \ / \ \ P U 🡲 A U 🡲 G / \ \ / \ A S P P U \ \ S S Zig-Zig rotation: First PG and later AP G P A / \ / \ \ P U 🡲 A G 🡲 P / \ / \ \ A S S U G / \ S U Zig-Zag rotation: First AP and later AG G G A / \ / \ / \ P U 🡲 A U 🡲 P G / \ / / \ S A P S U / S My question here is, why is zig-zag rotation performed upwards (in the sequence AP, AG) whereas zig-zig rotation is performed downward (in the sequence PG, AP)?
Далее
小天使和小丑离家出走#short #angel #clown
00:36
아이들은 못말려 〰️ With #짱구
00:11
Просмотров 514 тыс.
10.1 AVL Tree - Insertion and Rotations
43:08
Просмотров 1,1 млн
Splay Tree Insertion
12:12
Просмотров 858