Summary
Keywords
Full Transcript
AVL tree is a self-balancing Binary Search Tree (BST) where the difference between heights of left and right subtrees cannot be more than one for all nodes. This difference is called the Balance Factor. In this tutorial we will study and understand the 4 different Rotations that are performed on imbalanced binary search trees to covert it to AVL trees. These examples will have more the 3 nodes to study how rotations work when more than 3 nodes are involved. We peform 4 basic rotations depending of 4 difference cases - 1) Left Rotation 2) Right Rotation 3) Left Right Rotation 4) Right Left Rotation --------------------------------------------------------------------------------------------- Theory & Code article - https://simplesnippets.tech/what-is-avl-tree-data-structure-all-avl-operations-with-full-code/ Full Playlist - Full DSA playlist - https://www.youtube.com/watch?v=XCyuHSJS7XE&list=PLIY8eNdw5tW_zX3OCzX7NJ8bL1p6pWfgG Full C++ Programming for Beginners Course - https://www.youtube.com/watch?v=AKNGgAXTark&list=PLIY8eNdw5tW_o8gsLqNBu8gmScCAqKm2Q --------------------------------------------------------------------------------------------- Support Simple Snippets by Donations - Google Pay UPI ID - tanmaysakpal11@okicici PayPal - paypal.me/tanmaysakpal11 --------------------------------------------------------------------------------------------- Timecodes - 00:00 Introduction & Recap 01:33 AVL tree Rotations with more than 3 nodes 02:23 LEFT LEFT Case 09:38 RIGHT RIGHT Case 13:54 LEFT RIGHT Case 19:35 RIGHT LEFT Case --------------------------------------------------------------------------------------------- Simple Snippets Official Website - http://simplesnippets.tech/ Simple Snippets on Facebook - https://www.facebook.com/simplesnippets/ Simple Snippets on Instagram - https://www.instagram.com/simplesnippets/ Simple Snippets on Twitter - https://twitter.com/simplesnippet Simple Snippets Google Plus Page - https://plus.google.com/+SimpleSnippets Simple Snippets email ID - [email protected] For More Technology News, Latest Updates and Blog articles visit our Official Website - http://simplesnippets.tech/
