Sir In last insrtion of 99 You forgot to take 44 which was there in previous step, and after inserting 99 the tree is automatically balanced so no need of further rotation..... please check it once.
@pranaygupta59113 жыл бұрын
Yeah Exactly 👍
@adityarajdangi62932 жыл бұрын
It happens sometimes 🤣
@Movies-tj7gd Жыл бұрын
exactly
@kedareswarp7402 Жыл бұрын
exactly bro you are right.
@Pepperrinooo11 ай бұрын
Exactly
@AlokTP Жыл бұрын
Best explanation. Best educator.
@JohnKlaven2 жыл бұрын
Wow thank you! I have a test on thursday and this cleared up some questions. I appreciate it!!
@burhanmirza8603 жыл бұрын
Appreciated man all these videos are best !
@dooooooom-y8l2 жыл бұрын
you did a mistake at adding 99 you forget about 44 that was child of 35 and you missed that because of that your tree got imbalance at 55 but still you're king and you helped me alot with oop and dsa thanks for the efforts you have done for all of us lots of love from Pakistan
@g.mzesan86492 жыл бұрын
Just Amazing... What a video explanation.. It was a very helpful video..
@SimpleSnippets2 жыл бұрын
Glad you liked it
@dipteshwarule28114 жыл бұрын
Sir your videos are awesome and self explanatory...💯💯
@SimpleSnippets4 жыл бұрын
Thanks a ton
@bingkysskiliwaax79414 жыл бұрын
Hello sir, ty for your clear tutorials as usual. I hope you can teach us machine learning in the future.
@SimpleSnippets4 жыл бұрын
Will check and see if I can collab
@basic50713 жыл бұрын
best tutorial here are the points: - we will perform rotations when balanced condition is not satisfied - in right rotation of 3 nodes, central node becomes parent node(new root node) and top node becomes right child = left left imbalance - in left rotation of 3 nodes, central node becomes parent node and top node becomes left child = right right imbalance - critical node is the node whose balance factor is neither 1,0,-1 - remember when we are doing rotations we should consider imbalanced node and 2 nodes below it - imbalanced node will be lower node ( if 2 and -2 are 2 imbalanced nodes, we will consider node with -2(lower)) - balance factor = left - right - how to detect LR or RL cases - LR case is left and then right turn from 1st to 3rd node : we do LR rotation - RL case is right and then left turn from 1st to 3rd node : we do RL rotation - in LR rotation : 3rd becomes parent node or new root node(top), 1st node becomes right child (consider nodes as 1,2,3 from imbalanced node) - in RL rotation : 3rd becomes parent node or new root node(top),1st node becomes left child - *bottom node becomes root node #peace is my favorite line
@enassirfan2256 Жыл бұрын
thankyou so much for this. I really appreciate it
@omkarshirsath6292 жыл бұрын
Nice explanation brother..You just missed value 44 at the end..But nicely explained.
@-GuptaRahul3 жыл бұрын
Sir you forget to add 44 in the final AVL Tree
@shivakumary78393 жыл бұрын
yes he forgot to add 44
@alloydsaviomendonca1734 жыл бұрын
hey at 43:44 i guess you have missed to attach 44 to 35 , so if you attach i feel 55 will be balanced, do check it out
@SimpleSnippets4 жыл бұрын
Yeaah I missed that
@BACSShaileshShettar2 жыл бұрын
@@SimpleSnippets so after inserting 99 it remains balanced right?
@sayalbaig6296 Жыл бұрын
yes sir@@BACSShaileshShettar
@ManishSharma-fi2vr3 жыл бұрын
Thank You For Your Efforts.
@SimpleSnippets3 жыл бұрын
Welcome!
@dushyantjakhar17162 жыл бұрын
We Love You bro, You doing amazing job
@dipteshwarule28114 жыл бұрын
Can you please upload the videos related to TBT and Code related to graphs like DFS,BFS,Minimum Spanning Tree using Prims and Kruskals Algorithm,Shortest Path using Dijkstra's algorithm. Your lectures would help most of the people as these topics are somewhat difficult to implement.
@ponradhakrishnan7013 жыл бұрын
great explanation bro keep going... keep doing...
@garv11773 жыл бұрын
Amaizing explanation. Loved it!!!
@SimpleSnippets3 жыл бұрын
Glad you liked it!
@garv11773 жыл бұрын
@@SimpleSnippets your explanations are realy clear sir this is helping me alot in understanding AVL trees and also BST logics. 🙏 thank you for this playlist I hope you will keep on spreading knowledge like this and helping students like us❤
@SimpleSnippets3 жыл бұрын
Thank you so much buddy for such wonderful words. Yes will keep sharing my knowledge via this channel. One request to you is please share the videos and channel with your friends too ✌️
@dangerbirb49817 ай бұрын
Great explanation!
@sheetalsahu47592 жыл бұрын
u missed 44 somewhere in midst, btw loved the explanation
@shubhamsandanshiv5154 жыл бұрын
Nice explanation 💯
@SimpleSnippets4 жыл бұрын
Appreciate it
@bharat_20204 жыл бұрын
42:22 you forgot to add 44 node..but nice video ..keep it up
@SimpleSnippets4 жыл бұрын
Yes, you are right
@semihaturkogluАй бұрын
great explanation
@abhinav_wav4 жыл бұрын
You missed 44. This is the problem when you do it all alone... I guess🤷♀️. Can you get yourself a companion so that you can upload videos even faster and the other would also help in validation?
@vladislavzubov28182 жыл бұрын
You are awesome. Thanks for your work man.
@fazilabano13094 жыл бұрын
Thank u so much i am waiting for this vedio😊
@SimpleSnippets4 жыл бұрын
Most welcome 😊
@vijaykumarsanugonda27843 жыл бұрын
Nice sir, keep going on....
@SimpleSnippets3 жыл бұрын
Thank you, I will. Please do share the videos and channel with your friends too. Thats the biggest help and support you can give back to our channel!
@kirtientertainments31194 жыл бұрын
Bro you missed to consider node 44 at 42:20
@sarvottampriyadarshee54253 жыл бұрын
you don't need to check the balance factor of each node after a new insertion in AVL. We only need to check the new-node's ancestors (because those are the nodes whose balance factor may get disturbed by this insertion. Furthermore, we should take bottom up approach to calculate the balance factor, if any nodes bf is not {-1, 0, 1} we perform the rotations. And if we get to a node whose bf becomes zero after this new insertion, we can safely stop checking for imbalance above that node!
@Zohaib68014 жыл бұрын
HI. Are there any more videos coming up? Likely about implementation of AVL Tree and B Tree?
@SimpleSnippets4 жыл бұрын
Yes, absolutely
@nikotech80852 жыл бұрын
@@SimpleSnippets you forgot 44 in last step
@hinamitsuha75073 жыл бұрын
should the last result be "self-balanced binary search tree"? I mean after 99 gets added to the tree, where the 44 is inside too... so you don't have to do rotating... my calculation where the last number (99) gets inserted is a balance one... anyway, thank you for your efforts. It helps me a lot!
@hnssb75333 жыл бұрын
yeah. He didn't write 44
@ishanrai39513 жыл бұрын
yess he forgot 44
@ashishgupta78494 жыл бұрын
node (44) is deleted?
@MKSundaram3 жыл бұрын
Great work! keep it up. Stay blessed :-)
@rejinapv24723 жыл бұрын
Excellent
@MuzammalHussain-l7xАй бұрын
it will be good if we have just like doubly linked list as each node has one more pointer which is for parent
@duck7302 жыл бұрын
Thank you my hero
@shivakumary78393 жыл бұрын
Broo you forgot to add 44 (42:21) But it's OK I got the concept
@everettcienkus29894 жыл бұрын
I think you forgot to add the 44 back into the new AVL Tree at 42:21
@SimpleSnippets4 жыл бұрын
Oh yes, an honest mistake. Sorry for that and good you pointed it out. Means you were focussing well 🤪 I'll add a comment to pin
@everettcienkus29894 жыл бұрын
@@SimpleSnippets No worries
@Zohaib68014 жыл бұрын
@@SimpleSnippets If there was 44 already, was the tree balanced at that very moment? I mean after inserting 99?
@hinamitsuha75073 жыл бұрын
@@Zohaib6801yes, mine was balanced tree...
@souravmalani68133 жыл бұрын
Why can't my professor teach that much good.
@shubhamsandanshiv5154 жыл бұрын
Sir can u make vedio on threaded binary tree plz
@rohansharma43953 жыл бұрын
Skipped 44 mid-solution and that modified the answer
@SumantXD4 жыл бұрын
plz start a series on DP
@SimpleSnippets4 жыл бұрын
Soon!
@rahulkumarsingh76153 жыл бұрын
Bro, i think there is a mistake in value 44:
@shivakumary78393 жыл бұрын
yes
@ruchitraushan28953 жыл бұрын
ALERT ALERT ALERT🚩🚩🚩🚩 43:59 timetag... Actually you left the 44 which creates the unbalance in the structure..... So if you are reading my comment then please improve it as it has very different answer.....
@mahmoudsaleem29883 жыл бұрын
i think the whole idea is : when we want to balance a bst in the insertion operation we check the balance of the tree then we start with the non balanced node and then we compare the value we inserted with it then compare with the child of the non balanced node to determine the type of the rotation with a 3 successor nodes as the descendants then three nodes we start the operation of the rotation am i right ?? thanks in advance 😍😍😍😍
@hil4492 жыл бұрын
i dont think we need to check the balance factor of the whole tree, only the balance factor of the nodes in the path from the root up to the node to be inserted
@muzammalhussain4887 Жыл бұрын
love from pakistan❣❣
@tabishmadni62844 жыл бұрын
Sir, are you planning to add graph in DSA playlist also?
@SimpleSnippets4 жыл бұрын
Yes ofcourse I will
@athirapj47262 жыл бұрын
HI..IN THIS EXAMPLE NUMBER 44 IS MISSING..PLS CHECK..YOU ARE EXPLAINED CLEARLY THANK YOU
@ashishkadam42794 жыл бұрын
sir can you please create videos on graph topic
@SimpleSnippets4 жыл бұрын
Yes I will
@samafianasar37493 жыл бұрын
Aoa sir 44 wali node khan giii i think mistakenly likhaa ni gyaaa
@SimpleSnippets3 жыл бұрын
Yes that was a silly mistake
@sagarkumar138 Жыл бұрын
44 ko gayab kar diya sir ne 😂😂
@fazilabano13094 жыл бұрын
Plz upload the vedio on avl tree insertion with coding plz
@SimpleSnippets4 жыл бұрын
Soon
@anshusharma14443 жыл бұрын
where is 44??
@shaurya20633 жыл бұрын
Where did 44 went in the last step I think you missed it sir
@ranjan41123 жыл бұрын
In final calculation, you have skipped 44 please look into that...