AVL Tree 7 complete example of adding data to an AVL tree.

Поделиться
HTML-код
  • Опубликовано: 9 ноя 2016
  • Dr. Rob Edwards from San Diego State University works through a complete example of adding data to an AVL tree.

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

  • @NiiAnikin
    @NiiAnikin 5 лет назад +36

    what do you know. this 20 minute video has done more than my lectures ever achieved. I don't know why but this is the most intuitive one I have seen yet. Maybe the knowledge up to this point has been incremental but whatever the case this video just did it for me.

  • @kavyamj
    @kavyamj 6 лет назад +90

    For anyone who wants to try and check the answer, the input is 43, 18, 22, 9, 21, 6, 8, 20, 63, 50, 62, 51.

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

    Dear Dr.Rob Edwards,
    Your lecture about explaining the 7 complete examples of adding data for an AVL tree.
    This is very beneficial for me. because I was really worried about my assignment but your lecture fixed my problem and concept
    about Inserting data in AVL. tree.
    Thank you.

  • @mademoisellerose727
    @mademoisellerose727 2 года назад +1

    The excellent lecture. Only i can undertand avl tree clearly due to his explanation

  • @aBulgakoff
    @aBulgakoff 9 месяцев назад

    thank you for the effort you put into the explanation. The fact you didn't modify existing tree but always created a new for each iteration made a huge difference!

  • @doingsneakypeakylike
    @doingsneakypeakylike 6 лет назад +1

    thank you for all the amazing lectures on data structures, professor. can't thank you enough!

  • @ozzy_330
    @ozzy_330 4 года назад +2

    I love the whole video series about AVL trees, thank you! 🙌🏻

  • @borgestheborg
    @borgestheborg 6 лет назад +2

    The best algorithms and DS tutor on RUclips!

  • @halljerry9
    @halljerry9 4 года назад +2

    This video was very helpful in explaining AVL trees. Thank you, Dr. Edwards!

  • @joeliyebi8277
    @joeliyebi8277 5 лет назад

    great explanation Dr. Rob Edwards. Thank you very much!

  • @VagnerMachado84
    @VagnerMachado84 6 лет назад

    Thank you for this video and for the illustrations, this is the best AVL video I've watched!

  • @willlowry5170
    @willlowry5170 6 лет назад

    Thank you so much for this brilliant lecture. The visuals were awesome and easy to follow along with.

  • @CameronPak
    @CameronPak 6 лет назад

    I have had a hard time understanding AVL trees until now. Thank you!

  • @ililililil8385
    @ililililil8385 6 лет назад +14

    Thank god I found this video! The other videos on youtube regarding this subject are HORRID!

  • @jerrykankelborg9943
    @jerrykankelborg9943 4 года назад

    thank you Dr Edwards, that was far better than my instructors explanation. without this video, I would have been hurting.

  • @nikhilkulkarni1842
    @nikhilkulkarni1842 5 лет назад

    This explanation is the easiest to understand. Thanks Professor!

  • @data_with_michalis
    @data_with_michalis 6 лет назад +1

    You made it to look so easy! Thank you for this great lecture!

  • @zid3
    @zid3 5 лет назад

    Got an exam that is more or likely to contain tree structures, this helped a lot. Thank you!

  • @TienHuynh5312
    @TienHuynh5312 7 лет назад +5

    Thank you for your great lecture! It also kind of cool when you wrote on glass board just like in the movie.

  • @oscarhalse2026
    @oscarhalse2026 Год назад

    I should just have come here to begin with!
    After watching it being done for a while you start to see the pattern, now it finally got into my head!

  • @chawza8402
    @chawza8402 5 лет назад

    this helps a lot, thank you. this video is really useful when you have studied it but can't find the right example to study

  • @exhesham
    @exhesham 6 лет назад

    Thank you
    what was important for me to take from this video:
    to balance the height, the middle valued node need to be the parent of the other two nodes' values
    after inserting the value according to BST concept, on retrival we calculate diffs and after two levels retrival we will dicover if we messed the balance and then rotate according to the 4 possibilities

  • @bartekbinda1114
    @bartekbinda1114 4 года назад +1

    U save my Introduction to algorithms exam :'), great work, really well taught

  • @LiOnHeLl-kc8vy
    @LiOnHeLl-kc8vy 7 лет назад

    You just saved my life, thank you!!!!

  • @ioanrus6032
    @ioanrus6032 Год назад

    A complex exercise and a good explanation. Thank you!

  • @Robizd1
    @Robizd1 4 года назад

    Thank you for sharing your lecture. I hope you continue with new videos.

  • @michaellarkin3345
    @michaellarkin3345 3 года назад

    Excellent!! Thank you for sharing.

  • @ohaRega
    @ohaRega 6 лет назад

    Thank you very much, that was exactly what I needed.

  • @SebaVeliz1
    @SebaVeliz1 4 года назад

    Thank you, english Julioprofe.
    You just saved my life

  • @jabaridash5354
    @jabaridash5354 6 лет назад

    Very well explained! Thank you so much!

  • @MrEdinaldolaroque
    @MrEdinaldolaroque 6 лет назад

    Thank you for your lecture! Helped me a lot.

  • @bodolawale5448
    @bodolawale5448 5 лет назад

    Beautifully done!!

  • @xolani_mkhwanazi
    @xolani_mkhwanazi 4 года назад

    U are god in the flash.... Thanks from south Africa 🇿🇦

  • @siyabongashabangu4973
    @siyabongashabangu4973 5 лет назад

    Thanks Prof for your great videos :-)

  • @AiSeii
    @AiSeii 6 лет назад

    Great explanation. Thank you!

  • @ugursoylar8714
    @ugursoylar8714 6 лет назад

    Thank you for this great explanation :)

  • @kokonutssss
    @kokonutssss 4 года назад

    This was great! It helped a lot! Thank you sir

  • @paraschawla3757
    @paraschawla3757 4 года назад

    Extreme thankful to you Dr, i wish you did cover Graph as well...

  • @AmirAli-gv7kn
    @AmirAli-gv7kn 6 лет назад

    Thank you for this great video

  • @stevefrt9495
    @stevefrt9495 6 лет назад +2

    Thanks you so much, it is clear, nice job

  • @TheMensCurlingChamp
    @TheMensCurlingChamp 5 лет назад

    This man is great. This man is great.

  • @yonghengmei6833
    @yonghengmei6833 6 лет назад

    This guy help me a lot

  • @ezprogramming7887
    @ezprogramming7887 7 лет назад

    Great examples!

  • @ukasz8983
    @ukasz8983 6 лет назад

    Great video, Thanks !

  • @tai_kuansung5891
    @tai_kuansung5891 5 лет назад

    Very good explanation!

  • @juanm7185
    @juanm7185 6 лет назад

    Sound ! great video mate.

  • @smitjani3251
    @smitjani3251 4 года назад

    Excellent explanation!

  • @zxnnightstalker2289
    @zxnnightstalker2289 3 года назад

    Thanks sir, that's very amazing.
    I appreciate it.

  • @kobezax24
    @kobezax24 6 лет назад

    It helps a lot. Thank you

  • @linj551
    @linj551 5 лет назад

    clear, thanks Rob

  • @ritwikmukherjee9893
    @ritwikmukherjee9893 4 года назад

    Thank you very much .... Very helpful !!!!

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

    Awesome video!

  • @dhimanchattopadhyay5920
    @dhimanchattopadhyay5920 6 лет назад

    excellent explanation

  • @PamirTea
    @PamirTea 6 лет назад

    Great video. Thank you!

  • @adamtafesse8971
    @adamtafesse8971 7 лет назад

    That was great! Thanks!

  • @mostafakarimi1733
    @mostafakarimi1733 5 лет назад

    Nice explanation, thank you, sir

  • @parvejmosharaf8046
    @parvejmosharaf8046 5 лет назад

    just outstanding

  • @cking9145
    @cking9145 5 лет назад +2

    Best readable mirrored handwriting on earth. I cannot even write upside down haha

  • @costasb1099
    @costasb1099 7 лет назад

    Great video, it very helpful!
    Would love to see some example where you remove nodes and check the balance.

  • @daleeps
    @daleeps 5 лет назад

    thanks for such a clear vid

  • @lresleland4238
    @lresleland4238 5 лет назад

    Thank you dear teacher. Serious

  • @bablobko
    @bablobko 4 года назад

    May you have good health.

  • @VISITLosAngeles
    @VISITLosAngeles 5 лет назад

    Thank you dear teacher

  • @jayhung8811
    @jayhung8811 6 лет назад +1

    have to note that even though some people think it is left-left on some textbooks, the idea is the same. ie left-left would have the same remedy as right-right. Same can be said for left-right and right-left.

  • @bobby9124
    @bobby9124 4 года назад

    Thank you so much

  • @dmitriysidorov1615
    @dmitriysidorov1615 4 года назад

    Thank you!

  • @theburntcrumpet8371
    @theburntcrumpet8371 6 лет назад

    You are a beautiful, beautiful man. Thank you.

  • @nucavani
    @nucavani Год назад

    Thank you! More videos on data structure

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

    thanks for this

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

    Big thank you~)

  • @fakeweeb5405
    @fakeweeb5405 4 года назад

    Perfectly balanced, as all thing should be

  • @Alpha-cl7fv
    @Alpha-cl7fv 4 года назад

    I wish my professor would do this many examples. My professor talked about how to do this for 30 seconds and I had no idea what he was talking about.

  • @mergatafa8501
    @mergatafa8501 6 лет назад

    Good professor

  • @enixgaming6017
    @enixgaming6017 5 лет назад

    after adding 62 there shoube RL rotation???

  • @Kellykmixtape
    @Kellykmixtape 6 лет назад +1

    i like this video.............

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

    Legendary

  • @timyturner2943
    @timyturner2943 Год назад

    after a bunch of indians... this video is a gem

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

    I have a question sir, where did the number u add came from?? I mean where did u get it?.

  • @sophierollo2187
    @sophierollo2187 6 лет назад

    You are now god to my house full of comp sci students.

  • @juliocarreras8673
    @juliocarreras8673 5 лет назад +1

    Love u pulgarcito

  • @gorangsharma5133
    @gorangsharma5133 5 лет назад

    What he was using to write??

  • @ebhyta1040
    @ebhyta1040 5 лет назад

    Hello Dr. Rob, My Name Hari, I want to ask for your presentation to use what screen, can it be reversed as seen? thank you... 🙏

    • @xyoxus
      @xyoxus 4 года назад

      It's Just plexiglass hes writing on, but he writes on it from the back, do he has to write everything mirrored.

  • @xinyuan5019
    @xinyuan5019 6 лет назад +49

    Am I the only one who noticed that Dr. Rob Edwards was writing backwards the whole time? Am I crazy??

    • @viktorbobinski1309
      @viktorbobinski1309 6 лет назад +12

      He was not writing backwards. An observer in the place of the camera would see all the writing backwards. But then, it's a camera which itself reflects the image in the relation to y axis (vertical).

    • @majdmahajenah843
      @majdmahajenah843 6 лет назад +3

      yes you are crazy xD

    • @JonasWeckschmied
      @JonasWeckschmied 6 лет назад +5

      dude it's just mirrored in editing

    • @angladephil
      @angladephil 6 лет назад +1

      He writes from left to right, like we do in Europe, USA etc, but he's left-handed !

    • @gorangsharma5133
      @gorangsharma5133 5 лет назад

      Was he writing on a glass with markers??

  • @sauce468
    @sauce468 5 лет назад

    At 6:30, can someone please explain why 21 is now a left child of 22. I can see it being balanced, but how did this happen?

    • @javaexpertsa8947
      @javaexpertsa8947 5 лет назад

      You have to understand the right rotation. The Tree was unbalanced, because the Tree was on the left higher than the right. So We did a Right Rotation. 18 have to be the root and his right child, will be the left child of the root before. That's how a simple Right Rotation works.

  • @orrinnaylor3681
    @orrinnaylor3681 4 года назад

    Bombin

  • @yagneshbhadiyadra1314
    @yagneshbhadiyadra1314 3 года назад

    How is this video recorded?
    How did he write like this?

    • @samanosvasilias
      @samanosvasilias 3 года назад

      He is obviously writing on a glass board from one the one side, while he is being recorded with a camera from the other side of the same glass board.
      After the video was recorded playing it back and understanding what he wrote would be impossible because it would looked reversed, but with a basic video editing software you can mirror the video image, making it look right!
      The bigger question is if he has any audience, like a class, because if he does, to them the board would look reversed just like it would look to us if the video hadn't been mirrored. In which case the only possible answer would be that this man had been writing in reverse this whole lecture, something that would be nothing less than insane, therefore we must conclude that he is not presenting this to a live audience and is only being recorded, meaning he has been talking to the camera alone this whole time.
      Any other possible explanation would be greatly appreciated!

  • @nucavani
    @nucavani Год назад

    👍

  • @stephangoldenberg9163
    @stephangoldenberg9163 4 года назад

    I'm officially too numb for this. I don't understand what rotates and how. Exam in 2 days ;( Is there an explanation for these rotations somewhere?

  • @SotTheBot
    @SotTheBot 6 лет назад

    keeps saying "don't forget to write down what type of rotation we are doin" -> "forgets to white down what of rotation he is doin". JK, awesome video, thanks a lot

  • @angladephil
    @angladephil 6 лет назад

    Confusing at 03:06 ... about right and left, it seemed to be left/right ?

  • @yapyyapo
    @yapyyapo 5 лет назад

    how is he drawing right to left?????????????

  • @johnxina7496
    @johnxina7496 7 месяцев назад

    to check the balance dont you have to check the heights of the subtrees? this guy is checking the height of the root node itself...

  • @susmitamazumder8390
    @susmitamazumder8390 5 лет назад

    Can you please make python videos

  • @blackfromabove9383
    @blackfromabove9383 4 года назад

    boss

  • @user-is2qn8so5j
    @user-is2qn8so5j 6 лет назад

    здравствуйте, как бизнес?

  • @quetah859
    @quetah859 6 лет назад

    Great explanation, but I don't like that he is faking to look into a classroom. Or are there people sitting there watching him write backwards? Quite irritating.

    • @vityamv
      @vityamv 5 лет назад

      noob

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

      The video is flipped and he's probably faking it but idk why it bothers u, he's still explaining nice

  • @timborg770
    @timborg770 Год назад

    The key important thing is HOW you do the actual rotation. You simply just say "...we bring the 22 up to be the root...", ...and? That's it? No explanation to Why and How?
    Honestly, it's such a waste of a potential good video.

  • @qiha9856
    @qiha9856 5 лет назад

    great explanations, thank you!

  • @Radiophobia
    @Radiophobia 5 лет назад

    Thank you!