Binary Search Tree Visually Explained

  Рет қаралды 233

ByteQuest

ByteQuest

Күн бұрын

Пікірлер: 16
@venzdrop
@venzdrop 4 ай бұрын
i worked on binary search tree today I did insert, bfs and dfs but now I just saw your search one and its helpful and the delete one. thanks for this video omg.
@abskrnjn
@abskrnjn 4 ай бұрын
Wow too detailed and long video, will watch just before exams..
@venzdrop
@venzdrop 4 ай бұрын
i like the second searching code. great.
@陈哲轩-t2m
@陈哲轩-t2m 3 ай бұрын
Well done. Sorted through my thought modules.
@Byte_Quest
@Byte_Quest 3 ай бұрын
Thnks
@JetLagRecords
@JetLagRecords 4 ай бұрын
ByteQuest, nice video keep it up bro
@Byte_Quest
@Byte_Quest 4 ай бұрын
Thanks
@venzdrop
@venzdrop 4 ай бұрын
on the else: return? on def insert. wdym by return? it returns nothing?
@Byte_Quest
@Byte_Quest 4 ай бұрын
Return means just return None.
@venzdrop
@venzdrop 4 ай бұрын
so when deleting root with two child, "we look for the biggest on the left or we look for smallest on the right? " or "we look at smallest from the left or biggest from the right? "
@Byte_Quest
@Byte_Quest 4 ай бұрын
Smallest in the right subtree.
@venzdrop
@venzdrop 4 ай бұрын
@@Byte_Quest got it. and biggest in the left subtree. thanks
@venzdrop
@venzdrop 4 ай бұрын
so what is the worst case for insertion and why?
@Byte_Quest
@Byte_Quest 4 ай бұрын
It's O(height) Best case when the tree is balanced in which case it would be O(log(n)) Worst case when the tree is unbalanced meaning the complexity will degrade to O(n), because the height is proportional to n in when unbalanced.
@Byte_Quest
@Byte_Quest 4 ай бұрын
Next video would be on "AVL tree" where balancing will be discussed in greater detail.
@venzdrop
@venzdrop 4 ай бұрын
w
Queue Visually Explained
14:25
ByteQuest
Рет қаралды 127
Red-Black Trees Visually Explained
25:38
ByteQuest
Рет қаралды 891
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
5 Sorting Algorithms Every Programmer Should Know
20:08
ByteQuest
Рет қаралды 486
This AI Robot Is Doing the Impossible - Unitree x ElizaWakesUp
9:30
AI Revolution
Рет қаралды 159 М.
Even More USELESS Redstone Machines
10:45
gerg
Рет қаралды 12 М.
25 CyberSecurity Terms You Should Know
19:40
ByteQuest
Рет қаралды 766
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41