AVL tree Rotations - (LL RR LR RL) with more than 3 Nodes with (Diagram & Example | DSA

Поделиться
HTML-код
  • Опубликовано: 30 июл 2024
  • 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 - simplesnippets.tech/what-is-a...
    Full Playlist - Full DSA playlist - • Introduction to Data S...
    Full C++ Programming for Beginners Course - • Introduction to Comput...
    ---------------------------------------------------------------------------------------------
    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 -
    simplesnippets.tech/
    Simple Snippets on Facebook -
    / simplesnippets
    Simple Snippets on Instagram -
    / simplesnippets
    Simple Snippets on Twitter -
    / simplesnippet
    Simple Snippets Google Plus Page -
    plus.google.com/+SimpleSnippets
    Simple Snippets email ID -
    simplesnippetsinfo@gmail.com
    For More Technology News, Latest Updates and Blog articles visit our Official Website - simplesnippets.tech/

Комментарии • 31

  • @binoyjohn1113
    @binoyjohn1113 3 года назад +11

    your videos helped me clear the internship interview. thank you!!!

    • @SimpleSnippets
      @SimpleSnippets  3 года назад +5

      That's amazing bro. I'm so proud & happy for you ❤️
      Please do share my videos & channel with your friends too ✌️ that's the biggest thank you that you can say to me 😊

  • @gms02
    @gms02 2 года назад +8

    Life-saving video! Thanks so much. At first it feels so unintuitive, but your video explains how it all gets turned into simpler rotations. Beautiful work :)

  • @gamingfingers4523
    @gamingfingers4523 3 года назад +11

    During the interview: rotate the AVL tree
    in job: I just need a really big button.

    • @SimpleSnippets
      @SimpleSnippets  3 года назад +3

      Hahahaha this is exactly what I and Saurav talked in the recent tech talks. Infact I even shared that meme 😂 check the video Incase you missed 🤪

  • @kanikabagri247
    @kanikabagri247 3 года назад +9

    Honestly Sir! I hated Data Structures as I haven't been consistent because I never enjoyed learning it. But your videos make me love DS. Thank You so Much!😀 I just have a small request to cover Heap Sort as well!

    • @SimpleSnippets
      @SimpleSnippets  3 года назад +2

      Great to hear! And yes I will cover Heap sort soon

  • @aluvaja9653
    @aluvaja9653 3 года назад +6

    really a very good video and a very good playlist.
    this channel really need some appreciation.🙌🏻🙌🏻🙌🏻🙌🏻🙌🏻❤❤💖💖

  • @tavwalt1973
    @tavwalt1973 Год назад +1

    Thank you so much for making the effort and putting a video like this together!!!!

  • @enzoyasuo9264
    @enzoyasuo9264 Год назад +1

    Thank you for the video, it really helped a lot. Greetings from brazil

  • @mrajkishor331
    @mrajkishor331 11 месяцев назад +1

    Thanks man❤. Helped a lot in less time.

  • @learningcom2574
    @learningcom2574 3 года назад +2

    Keep up the good work

  • @djayhandsomelo5398
    @djayhandsomelo5398 3 месяца назад +1

    AMAZING!!!!!!!!!!!!!!!!!

  • @karthiksundaram544
    @karthiksundaram544 Год назад +1

    Superb demos

  • @amalprakash5632
    @amalprakash5632 3 года назад +3

    Thanks for your effort, really helpful.

    • @SimpleSnippets
      @SimpleSnippets  3 года назад +1

      You are welcome! It would mean a lot if you could please share our channel and videos with your friends too ✌

  • @himanshubhatt6240
    @himanshubhatt6240 3 года назад +1

    loved it broo

  • @jamesnash9675
    @jamesnash9675 2 года назад

    you r the best ............masum

  • @mohammadahsan7873
    @mohammadahsan7873 3 года назад +4

    Bro. Please make video on AVL IMPLEMENTATION part....

  • @ahmadfaraz9279
    @ahmadfaraz9279 4 месяца назад

    In right-right rotation ,
    Consider x = 10, y = 11 and T2 = 9.
    Will this be a binary tree or not?

  • @ankitdwivedi2014
    @ankitdwivedi2014 3 года назад +1

    Sir please make a video on STL also

  • @saddamkhan-ze1yy
    @saddamkhan-ze1yy 3 года назад +3

    Sir when will you upload the implementation part.😊😍👌

  • @eaglerider1088
    @eaglerider1088 3 года назад +1

    Bro waiting for next video

  • @riddhiumap8497
    @riddhiumap8497 3 года назад +1

    Is this course complete ?

  • @amolkhatikkar2001
    @amolkhatikkar2001 3 года назад +2

    Keep up the good work