Data structures: Binary Search Tree

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 พ.ย. 2024

ความคิดเห็น • 388

  • @supastar25
    @supastar25 4 ปีที่แล้ว +202

    I absolutely LOVE how you started off by showing the common operations and their time analysis for Arrays and Linked lists before introducing BST. Sometimes you just know these things but not exactly WHY the need for them in the first place. Thanks.

    • @Lyriks_
      @Lyriks_ 3 ปีที่แล้ว +2

      totally agree with you

  • @ajaysabarish9645
    @ajaysabarish9645 7 ปีที่แล้ว +16

    yours is perhaps the only lectures series that doesn't confuse students with unnecessary things,it is really great,thank you very much

  • @ccossmin
    @ccossmin 2 ปีที่แล้ว +11

    Honestly this was one of the best, if not *the* best algorithm exploration I've ever seen. Congratulations to the author(s)!

    • @mrspock7277
      @mrspock7277 2 ปีที่แล้ว

      One of the authors died in a hit and run case, back in 2014. It’s really a great loss. The other one is working for google in Silicon Valley.

  • @AteebAkmal-x5h
    @AteebAkmal-x5h 14 วันที่ผ่านมา

    After looking at many videos online of many different youtubers. This is the best one. The way he introduced arrays and linked list first and the issues with them and how can we fix your issues is exactly what everyone needs to know

  • @WolfKelley1
    @WolfKelley1 2 ปีที่แล้ว +3

    Hands down the best and most clear cut example on binary search tree so far. Thank you.

  • @leixun
    @leixun 4 ปีที่แล้ว +82

    *My takeaways:*
    1. Computation complexity comparison of searching/inserting/removing elements in Array (sorted, unsorted), linked list and binary search tree (balanced) 0:00 - 9:28
    2. What is balanced binary search tree and why it is efficient for searching 9:30
    3. Unbalanced binary search tree 16:22
    3. Insert and remove elements in balanced binary search tree is also efficient 17:44

  • @temitopeoyeyemi899
    @temitopeoyeyemi899 6 ปีที่แล้ว +238

    if you have exam this morning skip and start at 9:53

    • @saitaruns
      @saitaruns 4 ปีที่แล้ว +10

      And play the video in 2x

    • @akashlenka4068
      @akashlenka4068 4 ปีที่แล้ว

      @@saitaruns 🌝😅

    • @tasty0rang3
      @tasty0rang3 3 ปีที่แล้ว +5

      @Ammie Zolman wow! a shady comment posted minutes after, i’m gonna believe this :D

    • @piyushagarwal5830
      @piyushagarwal5830 3 ปีที่แล้ว

      @@tasty0rang3 lol

    • @kirind7181
      @kirind7181 3 ปีที่แล้ว +1

      thanks dude

  • @dineshbhonsle6524
    @dineshbhonsle6524 8 ปีที่แล้ว +2

    Very crisp and clear, it was 16 years since i graduated and never brushed up on this topic. Excellent !

  • @ArpanPathak
    @ArpanPathak 9 ปีที่แล้ว +146

    You are the best teacher in this planet .....

    • @zahirjacobs716
      @zahirjacobs716 7 ปีที่แล้ว +6

      He was. R.I.P.

    • @peachyspalace
      @peachyspalace 7 ปีที่แล้ว

      Hes dead? Didnt he upload a video 5 months ago?

    • @AhmedHadiPADI_scuba_instructor
      @AhmedHadiPADI_scuba_instructor 7 ปีที่แล้ว +1

      are you serious ?

    • @zahirjacobs716
      @zahirjacobs716 7 ปีที่แล้ว +2

      Ahmed Hadi unfortunately I am. Sometime in 2014 already. There is a Quora answer about this written by the cofounder of this channel. Google humblefool.

    • @sourabhsingh4058
      @sourabhsingh4058 5 ปีที่แล้ว +1

      @@zahirjacobs716 nop brother he is alive

  • @tutorialshub4232
    @tutorialshub4232 10 ปีที่แล้ว +5

    Dear brother, your lectures have indeed helped me a lot for my university studies.
    Thank you so much for putting up this selfless effort.
    May God reward you with goodness.

  • @brianspain4252
    @brianspain4252 7 ปีที่แล้ว +17

    You sir are an incredible teacher. Your delivery and pace is so easy to understand. Thank you for the great content.

    • @karthikkumaresan1091
      @karthikkumaresan1091 11 หลายเดือนก่อน

      He won't hear you. He passed away in an accident, a year after these lessons came out.🙁

  • @UshaPonnada
    @UshaPonnada ปีที่แล้ว +2

    You are a great teacher and confident teacher with profound knowledge

  • @vishalsnsingh
    @vishalsnsingh 4 ปีที่แล้ว +8

    I left my college lectures to study this video, wonderful and easy explain!

  • @evanl5299
    @evanl5299 7 ปีที่แล้ว +7

    Excellent explanation. I wish my university classes were this concise and well-explained.

  • @malkavian6275
    @malkavian6275 4 ปีที่แล้ว +3

    One of the best explanations I've seen on any subject, I understand this perfectly now. Thank you!

  • @megr
    @megr 2 ปีที่แล้ว +3

    One of the best videos I've seen regarding data structures. Thanks for sharing the knowledge.

  • @ananyadixit1215
    @ananyadixit1215 5 ปีที่แล้ว +2

    I literally loved the way you turn things and make it go concrete in our head..! You are surely a life saviour 🙏

  • @moiqubal
    @moiqubal 10 ปีที่แล้ว +40

    You give an excellent lecture. Please don't change a thing.

  • @RahulKumar-wk2jp
    @RahulKumar-wk2jp 6 ปีที่แล้ว +3

    You all lectures are very simple and understandable...thanks a lot..keep working like that..

  • @GintoPlays
    @GintoPlays 4 ปีที่แล้ว +5

    This is a really concise and clear explanation of a BST. Thank you!

  • @___vijay___
    @___vijay___ 4 ปีที่แล้ว +3

    You have done something very good.
    We are getting good knowledge because of you.
    Thank you.

  • @aaradhanah5059
    @aaradhanah5059 5 ปีที่แล้ว +6

    I am emotional after hearing about this guy's story he is Harsha Suryanarayanan from IIIT-A, he was the highest rated geek in Topcoder in India he mentored his juniors but unfortunately he died while crossing a road, I am happy that he is still mentoring lot of us. #TributeToHarsha

    • @r.m.harish5529
      @r.m.harish5529 4 ปีที่แล้ว

      Don't spread false information that was his friend. He is still alive.

    • @aaradhanah5059
      @aaradhanah5059 4 ปีที่แล้ว

      @@r.m.harish5529 why do I want to spread false information, am I getting any awards for it, before arguing check news yourstory.com/2014/06/techie-tuesdays-humblefool?

    • @r.m.harish5529
      @r.m.harish5529 4 ปีที่แล้ว

      @@aaradhanah5059 bro the person who actively controlled this channel was the co founder animesh. He is alive and well. Harsha does not make the videos, animesh does.

    • @aaradhanah5059
      @aaradhanah5059 4 ปีที่แล้ว

      @@r.m.harish5529 This channel is not active, it is a teamwork between harsha and animesh, If he is alive this channel might me active, also I wish animesh to teach us, I just made a comment to appreciate harsha's dedication reply before researching about it

    • @r.m.harish5529
      @r.m.harish5529 4 ปีที่แล้ว +1

      @@aaradhanah5059 atleast now you accept that it's a teamwork. I only corrected you earlier because you made it seem like it was an effort only by Harsha. Other people may not know about animesh, who made these videos. I hope you understand and take it in the right sense sorry if I hurt you by saying u spread false info

  • @gloriakinya3986
    @gloriakinya3986 3 ปีที่แล้ว

    Well,, been taught this in an online class and grasped nothing but here, still online am getting it all🤗🤗Thankyou

  • @sudhirsharma2902
    @sudhirsharma2902 3 ปีที่แล้ว +2

    Man! the teaching level is just amazing. Respect for the knowledge and research behind this level of content-creation. Thanks with all my heart ❤️.

    • @karthikkumaresan1091
      @karthikkumaresan1091 11 หลายเดือนก่อน

      He was a pioneer of DS teaching in India but passed away at age 30. ☹

  • @anubhavsinghal9218
    @anubhavsinghal9218 6 ปีที่แล้ว +1

    I just checked out your videos on BST and I must say, Thank you very much.
    That was amazing....I mean now I know the basic functionality of BST.

  • @joeybing3476
    @joeybing3476 9 ปีที่แล้ว +7

    simply the best. I'd say your method of explanation is great.

  • @lpcruz5661
    @lpcruz5661 9 ปีที่แล้ว +1

    Do some more computer science stuff. You are articulate and easy to understand. I like it when you repeat to re-enforce the concepts. Well done.

  • @tr2494
    @tr2494 6 ปีที่แล้ว +2

    your videos are really helpful , moreover they convey all the info with so much of ease of understanding , and so efficiently , love your work , its great .and thanks from my side and as well as from the whole freshers in my college cause about more than 90% watch these for sure .

  • @nihaanali5923
    @nihaanali5923 7 ปีที่แล้ว +2

    Better explanation than my university lecturer. Thank you!

  • @deepakbhatt799
    @deepakbhatt799 4 ปีที่แล้ว +2

    Great lecture sir, these 20 mins are worthy. Thank you sir.

  • @aniruddhashahapurkar9244
    @aniruddhashahapurkar9244 4 ปีที่แล้ว

    Best explanation I have ever seen for a data structures' concept!

  • @liemh9290
    @liemh9290 5 ปีที่แล้ว +2

    There need to be a compiled list of TH-cam courses. best ones like this make the list. THERE are too many.

  • @adarshverma3372
    @adarshverma3372 4 ปีที่แล้ว +2

    when you talk about time complexity ,why to use trees i stooped the video and liked it and do this comment for thanking you for this level of explanation

    • @lupsik1
      @lupsik1 4 ปีที่แล้ว

      Its a basic thing you have to know if youre studying for an algorithms/data-structures exam, so its not really surprising he covered it.
      Like almost any operation you learn in CS, one of the first questions are always "What is the avg. time complexity ? what is the optimistic/pessimistic time complexity ? What is the space complexity ?"
      And those are really important questions, its awesome you recognised the significance of that, means you have proper intuition : )

  • @liliayu
    @liliayu 9 ปีที่แล้ว +17

    It's very helpful, Thank you for your explanation

  • @createprince2093
    @createprince2093 8 ปีที่แล้ว +4

    This is super great. Your explanations are concise and understandable and the graphics really help. Thanks for making these :) I will definitely be watching more of these data structure lessons!

  • @deepakjain-dr7ds
    @deepakjain-dr7ds 9 ปีที่แล้ว +1

    please upload more data structures videos ! its really helpful !

  • @Pimpinpark777
    @Pimpinpark777 7 ปีที่แล้ว +190

    Video starts at 9:38. You're welcome

  • @gakateke5036
    @gakateke5036 5 ปีที่แล้ว +8

    rest in peace. and thank you very very much

    • @AbinayaThiyagarajan777
      @AbinayaThiyagarajan777 5 ปีที่แล้ว

      Rest in peace????

    • @akshatw7866
      @akshatw7866 5 ปีที่แล้ว

      What??

    • @gauravnegi7871
      @gauravnegi7871 5 ปีที่แล้ว

      @@AbinayaThiyagarajan777 Yes bro @humblefool is no more, but he will always be remembered.

    • @AbinayaThiyagarajan777
      @AbinayaThiyagarajan777 5 ปีที่แล้ว

      @@gauravnegi7871 Oh Gosh!!!! 😱 Thats Shocking. Rip

    • @tusharf5
      @tusharf5 5 ปีที่แล้ว

      This is not that guy, this is his partner.

  • @b.f.skinner4383
    @b.f.skinner4383 3 ปีที่แล้ว +1

    You're an amazing teacher, thank you

  • @colorpanda8409
    @colorpanda8409 8 ปีที่แล้ว +15

    Simple and clear, helps a lot, thank you very much.

    • @fsyk1306
      @fsyk1306 2 ปีที่แล้ว

      Hey man it's been 5 years. How far have you come?

  • @photinoman
    @photinoman 8 ปีที่แล้ว +1

    Thank you, I just need popcorn to watch the rest of your videos!

  • @MrIglaq
    @MrIglaq 8 ปีที่แล้ว +1

    At 7.22 min u mentioned about inserting element into sorted array by performing 2 steps: 1)- find the position in array (use Binary Search -O(logn)) and 2)- shift all records (O(n)). How overall complexity time is O(n), since we have the sum of O(n)+O(logn)?

  • @prashant3735
    @prashant3735 5 ปีที่แล้ว

    I like your way of teaching....My teachers also study your lectures before coming to class :D

  • @akashvarde
    @akashvarde 6 ปีที่แล้ว +1

    I PAUSED THE VEDIO TO GIVE A LIKE AND SUB , NICE EXPLANATION ! KEEP IT UP

  • @mohitsaraswat8504
    @mohitsaraswat8504 7 ปีที่แล้ว

    Great bro Helped a lot for my exams

  • @nikhilchoudhary2955
    @nikhilchoudhary2955 7 ปีที่แล้ว +1

    Best tutorial for data structures ever had Subscribed:)

  • @coolguy9616
    @coolguy9616 2 ปีที่แล้ว +1

    Hey man I know you'll never see this but I appreciate you

  • @AGentlemansGaming
    @AGentlemansGaming 3 ปีที่แล้ว +1

    You just explained in 19min what my professor took 3 hours and 45 slides to do.

  • @avaneeshyadav124
    @avaneeshyadav124 8 ปีที่แล้ว +1

    Nicely Explained in a very excellent way...Thanks Sir

  • @Rajkumar-oo6bv
    @Rajkumar-oo6bv 4 ปีที่แล้ว

    Best explanations of data structure. Loved it!!

  • @anoniem012
    @anoniem012 4 ปีที่แล้ว +6

    Very good, thank you! For showing the necessity of learning this first.

  • @nabeelsyed8123
    @nabeelsyed8123 5 ปีที่แล้ว

    Brother kaafi badiya sanjaya hai aapne

  • @ashwinikumar3721
    @ashwinikumar3721 5 ปีที่แล้ว

    Thanks...You really are a great Teacher

  • @architmittal8659
    @architmittal8659 6 ปีที่แล้ว

    please provide the video for learning hashtables, maps, heaps plzzzz......you are the best!!!

  • @AhmedKhaledCH3
    @AhmedKhaledCH3 9 ปีที่แล้ว +4

    We can make a tail pointer which points to the end node of the linked list and add the newly created node to the end of the list with traversing from the head or the beginning and it will cost O(1).

    • @adityaravishankar8344
      @adityaravishankar8344 9 ปีที่แล้ว

      +Ahmed Kh'aled
      You need to traverse as you need to know where to insert the element
      For eg., if LL: 1;2;5;7;8;9
      and you want to insert 6, we cannot just make a pointer and insert at the rear end. We have to traverse from left to right
      LL: 6;1;2;5;7;8;9 [wrong]
      LL: 1;6;2;5;7;8;9 [wrong]
      LL: 1;2;6;5;7;8;9 [wrong]
      LL: 1;2;5;6;7;8;9 [correct]

    • @AhmedKhaledCH3
      @AhmedKhaledCH3 9 ปีที่แล้ว

      I must had said without back then.
      When I create a new node it updates a pointer called "tail" for instance.
      So whenever I want to add a node to the end of list I just get the address from "tail" and point it the one I want to create and which will be the new "tail", got it?

    • @bravheart95
      @bravheart95 9 ปีที่แล้ว

      و انا هيك بعمل .. اسهل و اسرع 👍

    • @stephan24297
      @stephan24297 6 ปีที่แล้ว +1

      I'm a bit late to the argument, but I agree with you. If you know the iterator already, then it is O(1). Else, you will have to find the iterator in which case it would be O(n).

    • @stephan24297
      @stephan24297 6 ปีที่แล้ว

      This is also adding on to the argument. It is from cplusplus.com "Unlike other standard sequence containers, list and forward_list objects are specifically designed to be efficient inserting and removing elements in any position, even in the middle of the sequence."

  • @kodaph
    @kodaph 5 ปีที่แล้ว

    Thanks for having a better English than others

  • @vipin_mishra19
    @vipin_mishra19 5 ปีที่แล้ว

    U r awesome....I don't know how to thank to you...but literally ur explanation is too good

  • @akhilkola8124
    @akhilkola8124 9 ปีที่แล้ว +6

    Excellent explanation and its really good videos

  • @kesharwani.prashant
    @kesharwani.prashant 3 ปีที่แล้ว

    Thank you, you have great teaching skills

  • @sanatit6429
    @sanatit6429 6 ปีที่แล้ว

    Your English is very good.grate job.

  • @nullbyte2215
    @nullbyte2215 5 ปีที่แล้ว +6

    Great explanation. Could you please enable the fan funding option so we can donate to this channel. We need more content like this. We know humblefool, not with us. We need more from this channel.

  • @pramaynikhade99
    @pramaynikhade99 6 ปีที่แล้ว

    There's so much of clarity....you really eel so enlightened :)

  • @sabyasachidas6115
    @sabyasachidas6115 3 ปีที่แล้ว

    Petition to restart @mycodeschool !!!

  • @zonenetplus
    @zonenetplus 10 ปีที่แล้ว +2

    Great !! very easy to follow and understand. Thank you very much !

  • @mashable8759
    @mashable8759 8 ปีที่แล้ว +2

    BEST EXPLANATION EVER!

  • @timalbathiya
    @timalbathiya 4 ปีที่แล้ว

    AMAZING explanation. Thanks

  • @TheLionheartCenter
    @TheLionheartCenter 5 ปีที่แล้ว +1

    You are an amazing teacher thank you

  • @murtuzabohari7122
    @murtuzabohari7122 9 ปีที่แล้ว +1

    @mycodeschool really good lec. Were really helpful for viva. Kudos to you!!!

  • @rodgersbyarugaba3904
    @rodgersbyarugaba3904 8 ปีที่แล้ว +1

    Better explanation than my university lecturer could manage.

  • @ainbrisk545
    @ainbrisk545 ปีที่แล้ว

    thank you so much! I appreciate you starting with the problem, made the rest of the video easier to understand :)

  • @thanhdong8869
    @thanhdong8869 4 ปีที่แล้ว +1

    Thank you for the incredibly useful videos. Currently I also intend to share their knowledge, I'm disturbed that you did not know the building of images in a video using algorithms tool ?. Looking forward to hearing from you guys soon, thanks

    • @BROOKnim
      @BROOKnim 2 ปีที่แล้ว

      sorry, they don't do videos anymore

  • @irfan0066
    @irfan0066 10 ปีที่แล้ว

    way to speaking is superb dude...

  • @SesameKiller
    @SesameKiller ปีที่แล้ว

    excellent explanation

  • @faizanali-gr8yx
    @faizanali-gr8yx 5 ปีที่แล้ว

    next level teaching

  • @HeyMr.OO7
    @HeyMr.OO7 ปีที่แล้ว +12

    Came for the Tutorial.. stayed for the Tutor 🤍👍🏻

  • @pawanparashar9370
    @pawanparashar9370 3 ปีที่แล้ว

    Godfather of DSA 🔥

  • @shubhamjain5747
    @shubhamjain5747 5 ปีที่แล้ว

    simple,to the point ,very good detailed explanation

  • @satvikkhare1844
    @satvikkhare1844 3 ปีที่แล้ว

    RIP the best DSA teacher internet had ever seen.

  • @learningisfun3791
    @learningisfun3791 4 ปีที่แล้ว

    Great explanation sir

  • @gauthambekal235
    @gauthambekal235 6 ปีที่แล้ว

    Very good explanation.

  • @kellybmackenzie
    @kellybmackenzie ปีที่แล้ว

    Thank you so much, this is so incredibly helpful! I really appreciate it!!

  • @lorimemontanes8950
    @lorimemontanes8950 3 ปีที่แล้ว

    Hi. I am one of your subscriber, been following you for a couple of months. Can i possibly use this as a reference in our class, seems like you do have a very clear way of explaining. Thankyouuu.

    • @BROOKnim
      @BROOKnim 2 ปีที่แล้ว

      yea you could keep his legacy alive .

  • @mizeravel
    @mizeravel ปีที่แล้ว

    Thats an amazing lecture, thank you for the content.

  • @hofsepzakharyan5838
    @hofsepzakharyan5838 9 ปีที่แล้ว +35

    you explain it wonderfully.. subscribed ;)

    • @SonuSonu-tk5pk
      @SonuSonu-tk5pk 7 ปีที่แล้ว +1

      why dont u go to ur country and study

    • @wisharya
      @wisharya 6 ปีที่แล้ว +2

      what a reply man

  • @RaviShankar-gm9of
    @RaviShankar-gm9of 5 ปีที่แล้ว

    excellent explanation it's awesome...

  • @kranthitech
    @kranthitech 10 ปีที่แล้ว +8

    Thanks for making this.. cleared some concepts :)

  • @mohammedafnanshariff3142
    @mohammedafnanshariff3142 3 หลายเดือนก่อน

    Thank you so much for these videos.

  • @selamainalem8728
    @selamainalem8728 7 ปีที่แล้ว

    excellent explanation and example, will follow for more!

  • @nurshuvo3854
    @nurshuvo3854 2 ปีที่แล้ว +1

    Nice explained

  • @amirdaneshmand9743
    @amirdaneshmand9743 3 ปีที่แล้ว

    Great video! But I think there is a inconsistency. Insertion in an array have complexity of worst case O(n) while in linked list it is improved to O(1). Consider inserting an element at the start of array, then you have to shift almost all the array by one element, while in linked list you only modify the links of two elements.

    • @isovideo7497
      @isovideo7497 3 ปีที่แล้ว

      In the unsorted case, insertion into an array just tacks the new item onto the end of the array, so (assuming the allocated space is larger than the number of defined array elements), this is of order O(1). For a one-directional unsorted linked list insertion at the head of the list is also O(1).

  • @user-jd1zx
    @user-jd1zx 6 ปีที่แล้ว

    Insertion and deletion are both O(1). Even if Deletion would be O(n), insertion must be O(n) too.

  • @ruchitakadu5396
    @ruchitakadu5396 7 ปีที่แล้ว

    Very helpful...thanku so much sir...great explanation😘

  • @dukememo8524
    @dukememo8524 6 ปีที่แล้ว

    Very good video, very calming voice gj buddy

  • @jonbikaku6133
    @jonbikaku6133 6 ปีที่แล้ว

    Arey I finally realised that you were trying to say ARRAY instead of arey lol. But really clear explanation. Thanks!

  • @ghostonerider6354
    @ghostonerider6354 10 ปีที่แล้ว +2

    Excellent lecture, thanks for posting!

  • @tejasarlimatti8420
    @tejasarlimatti8420 6 ปีที่แล้ว

    somebody give this guy a Nobel

  • @SonuSonu-tk5pk
    @SonuSonu-tk5pk 7 ปีที่แล้ว

    superb explaination.....

  • @madheehasheik3039
    @madheehasheik3039 5 ปีที่แล้ว

    Nice explanation. .👍👍

  • @sebastianback
    @sebastianback 3 ปีที่แล้ว

    Great explanation! Thank you!

  • @nguaial8490
    @nguaial8490 8 ปีที่แล้ว +1

    I am assuming that log() is base 2.
    Cannot reiterate how much I appreciate your video.

    • @lravikiran88
      @lravikiran88 8 ปีที่แล้ว

      s

    • @nostalgiaplatz
      @nostalgiaplatz 8 ปีที่แล้ว

      That wasn't a very useful comment, was it, Ravi?

    • @lravikiran88
      @lravikiran88 8 ปีที่แล้ว +2

      nostalgiaplatz dude ..haha ..sorry .. but yes Nguai al it is log base 2