Threaded Binary Tree (TBT) IN Data Structure Explaination

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 173

  • @rnsrivastava
    @rnsrivastava 7 років тому +60

    The purpose of Threaded binary tree is to make use of the NULL nodes.
    Here we fill the null nodes with Reference of other nodes.

  • @shikhajoshi8961
    @shikhajoshi8961 Рік тому +14

    Can't believe this level of content is available for free..
    Thank you sir.

  • @AryanSingh-sn3dx
    @AryanSingh-sn3dx 2 роки тому +12

    One of the best explanations I've seen for this topic , thank you so much sir

  • @DolceKarmaeda
    @DolceKarmaeda 6 років тому +24

    Having an exam tomorrow and I can't BELIEVE how much this video helped me understand threaded trees. You rock, sir! Thank for this amazing video!

  • @charlesAcmen
    @charlesAcmen 58 хвилин тому

    cant believe i watched this video before,so apparently i forgot all the knowledge,all right this time i will remember ,thank you

  • @sohamchakraborty4219
    @sohamchakraborty4219 5 років тому +13

    In order to reduce wastage of space we started using threaded binary tree so that the null pointers points to something meaningful, but due to that the problem which arouse concluded to the solution of using flags , which is actually more wastage of space

  • @himanshulahare7378
    @himanshulahare7378 5 років тому +41

    Slow even at 1.5x, but good teaching 👍.

  • @vrushantdomde1070
    @vrushantdomde1070 5 років тому +2

    great person,
    i understood this topic greatly as this topic is not my syllabus
    thanks you for making videos

  • @arupnaskar3818
    @arupnaskar3818 6 років тому +4

    sir! thank for giving us a very very powerful easy ways to understand DS.........

  • @bharanis9302
    @bharanis9302 6 років тому

    This tutorial makes mad man to geeks in dataStructures. Excellent

  • @student3336
    @student3336 5 років тому +1

    sir... u r excellent in teaching..... u r
    very good in teaching....😊👏👏👏👑👑👑👑👑

  • @ritesh1652
    @ritesh1652 5 років тому

    It is a good way to teach... because of slow teaching is better than the review of video

  • @factrevealers5169
    @factrevealers5169 5 років тому +1

    Thanks alot for providing your knowledge with the future programers of nation

  • @ketakikulkarni7363
    @ketakikulkarni7363 2 дні тому

    Thankyou sir! This cleared a lot of my doubts!

  • @sarthakyadav9950
    @sarthakyadav9950 3 роки тому +2

    Wow Amazing explanation. You are a great teacher Sir❤

  • @romanasalim5335
    @romanasalim5335 2 роки тому +1

    Sir..please doa video on selection trees,kd trees,leftlist trees and binomial heap...ur explanation is too good to understand..plse sir

  • @billionairemindset3984
    @billionairemindset3984 Рік тому

    Superb sir...tq very much... we have vtu exams on 19 april.... ❤❤❤

  • @kuldeepjindal4562
    @kuldeepjindal4562 5 років тому +3

    Sir, thanks for sharing these algos in such a easy manner.. request you to share also algo for tower of honai..??... waiting for it

  • @saswatasarkar7792
    @saswatasarkar7792 7 років тому +24

    Sir, excellent explanation. My compliments.
    I'd like to ask, about the purpose of the Dummy Node.
    Just wondering whether there is any convention to redirect the link of the extreme left and right child nodes to point to themselves instead of the Dummy pointer?
    Its just a wild though. Could you please take the pain to ponder on it?
    Thanks & Regards

    • @ujjawalsharma8363
      @ujjawalsharma8363 6 років тому +1

      same thing i want to ask.

    • @vitaminprotein862
      @vitaminprotein862 2 роки тому +1

      in order to maintain the uniformity of threads, we maintain a special node called the header node. The header node does not contain any data part and its left link field points to the root node and its right link field points to itself. If this header node is included in the two-way threaded Binary tree then this node becomes the inorder predecessor of the first node and inorder successor of the last node. Now threads of left link fields of the first node and right link fields of the last node will point to the header node.

    • @unknown-lv8io
      @unknown-lv8io Рік тому

      5 year ago means aap job kar rahe hoge ab...kaha placement hua ??

  • @sushmayoutubechannelofficial
    @sushmayoutubechannelofficial 7 років тому +12

    Sir please explain the coding of in order right threaded binary tree, create tree, insert left , insert right

  • @ankitbaid11326
    @ankitbaid11326 6 років тому +4

    Sir your videos are awesome and these videos helped me alot to understand a lot of DS problems. Thanks again. Thats what i say contribute to community.

  • @kavitha9134
    @kavitha9134 4 роки тому

    Its very clear explanation...i understand verywell...thank you sir

  • @avinashpandey1757
    @avinashpandey1757 5 років тому +2

    Not all hereos caps ...salute to you sir🙂🙃

  • @sambhajigavhane5791
    @sambhajigavhane5791 3 роки тому

    Sir your video is most helpful .

  • @b_01_aditidonode43
    @b_01_aditidonode43 Рік тому

    best explaination of tbt ..thanks a lot sir

  • @f.mworld7769
    @f.mworld7769 6 років тому

    Easy engineering clAses r awesummmmmm...love u sir.....

  • @DEEKSHATIWARI-gk8lz
    @DEEKSHATIWARI-gk8lz 6 місяців тому

    thankuhh somuch sir ,this content is very helpful for me ...

  • @sankalpambre1167
    @sankalpambre1167 8 місяців тому +1

    Very Nice Explanation Sir 🙏🙏

  • @sumanmandal4889
    @sumanmandal4889 2 роки тому

    Very beautiful explanation sir.

  • @koradaviswanadham1445
    @koradaviswanadham1445 2 роки тому

    thank u sir very good explanation..need lecture on digital search tree

  • @vaibhavkadam8790
    @vaibhavkadam8790 5 років тому +1

    Please also explain the programming code in C++. You explain really nice keep working.

  • @rashikasuresh9042
    @rashikasuresh9042 4 роки тому

    Great helpful before exams....

  • @electro1146
    @electro1146 Рік тому +1

    Great explaination sir.

  • @snehalgaikwad9716
    @snehalgaikwad9716 6 років тому +3

    i would like to ask,insertion and deletion operation of threaded binary tree implementation.

  • @kvsrpavankumar1979
    @kvsrpavankumar1979 5 років тому +1

    superb, thanks it is very useful to every one

  • @geekforgeeks3836
    @geekforgeeks3836 6 років тому

    Thanks to get scoring full mark in data structure

  • @joseph2073
    @joseph2073 2 роки тому

    thank you very much :) amzing explanation

  • @swagtech4895
    @swagtech4895 2 роки тому

    Excellent teaching I found what I needed 🔥👍

  • @TechieTaught
    @TechieTaught 2 роки тому

    Great Explanation. Thanks for your hard work

  • @ce050manankadiya7
    @ce050manankadiya7 2 роки тому +1

    Nice explanation sir 👍

  • @sejaldahake2745
    @sejaldahake2745 3 роки тому +1

    V detailed and amazing explanation 👍🏻 thanks a lot 😌💗

  • @dibyarupnath7705
    @dibyarupnath7705 2 роки тому

    Thank You so much for this excellent video sir!

  • @crazycatgames1111
    @crazycatgames1111 4 місяці тому

    I have an exam tomorrow. I hope this video helps me

  • @bendabas7797
    @bendabas7797 5 років тому +1

    Hi first of all thank you very much for all the videos , can you teach about B trees please?

  • @trojan8803
    @trojan8803 6 років тому +2

    how would you go about doing a pre-order addition to the same binary tree and then traversing it in pre-order? i have already written the code for a in order threaded binary tree as well as the traversal for in order however i cant seem to figure out what the pre-order implementation would look like for adding to a TBT in pre-order especially when you have right children that you need to point to that are on the other side of the tree im currently using 3 pointers to keep track of the nodes as i need them to hold the temporary place within each node i need to point to next.

  • @aakashs1806
    @aakashs1806 Рік тому +1

    Nice explanation, But how it is useful from Binary trees? And instead of introducing a dummy node, why cant we set the left and right flag integer as -1 and set the left and right pointer as NULL? so -1 represents NULL.

  • @Vocal-vibes-chirag123
    @Vocal-vibes-chirag123 Рік тому

    very nice explanation sir🙏🙏🙏🙏

  • @techservices7028
    @techservices7028 3 роки тому +3

    I finally found a video that I can understand. thank you .

  • @adarshgupta9272
    @adarshgupta9272 6 років тому

    great video sir plz keep this great work continued...

  • @dheerajvasisth8609
    @dheerajvasisth8609 3 роки тому +1

    Nice explanation sir

  • @huyvuquang2041
    @huyvuquang2041 7 років тому +4

    Thanks. Your lecture is very easy to understand. I like it! :))

  • @anhminhtran7436
    @anhminhtran7436 6 років тому +1

    Excellent explanation! Thank you

  • @praveengundla1235
    @praveengundla1235 4 роки тому

    excellent explanation

  • @motormaza_riders
    @motormaza_riders 4 роки тому +1

    Sir
    How about making the last node's flag as 1 and keep them null coz that node won't be pointing to any subnode under it

  • @yasheejain9681
    @yasheejain9681 4 роки тому

    Will you add a video on insertion in threaded binary tree?

  • @reassume4826
    @reassume4826 6 років тому

    Will u please prefer a good book of data structure?

  • @muthutailor
    @muthutailor 6 років тому

    Very thanks sir
    I will using that your cls

  • @shreyapandey6017
    @shreyapandey6017 5 років тому

    Wow . Concept clear af 👌

  • @VivekSingh-gq3ls
    @VivekSingh-gq3ls 6 років тому

    Excellent explanation sir...

  • @gavrashyamala654
    @gavrashyamala654 4 роки тому

    Awesome explanation sir

  • @murugaz3571
    @murugaz3571 6 років тому

    tq sir......very easy to understand....

  • @snehalgaikwad9716
    @snehalgaikwad9716 6 років тому +1

    sir,excellent explanation.

    • @Oliver-mi4nu
      @Oliver-mi4nu 5 років тому

      Sir nahi hai woh mera dost hai

  • @shrutikakhilare
    @shrutikakhilare 3 роки тому +1

    This was explained so nicely :)

  • @gligoratanasovski3329
    @gligoratanasovski3329 5 років тому +1

    Great explanation, thanks!

  • @rushibadheka1335
    @rushibadheka1335 3 роки тому

    Explanation amazing 🔥

  • @rittwickbhabak7348
    @rittwickbhabak7348 4 роки тому

    Awesome explanation.

  • @anupkulkarni3346
    @anupkulkarni3346 4 роки тому

    mast shikavta sir

  • @nexesdz3907
    @nexesdz3907 4 роки тому

    Thanks sir,well explained

  • @mayanksinghal6261
    @mayanksinghal6261 4 роки тому

    Nice explanation

  • @nayanasalaliya5253
    @nayanasalaliya5253 2 роки тому

    loved your explanation

  • @rashikasuresh9042
    @rashikasuresh9042 4 роки тому

    Can u please do videos on sparse matrix and its triplet form and transpose

  • @Dhanraj-1601
    @Dhanraj-1601 2 роки тому

    Thank you ma'am

  • @pumpmanagementsoftware
    @pumpmanagementsoftware 6 років тому +1

    Great explaination sirji

  • @kartiksaini5619
    @kartiksaini5619 3 роки тому

    Thank u ,😏❤️❤️ explanation 🔥🔥😏

  • @neverfold14
    @neverfold14 2 роки тому

    nice explanation! helped a lot

  • @__RANJANIAR
    @__RANJANIAR 6 років тому

    spr sir.....sema xplanation

  • @bibinmathew5921
    @bibinmathew5921 5 років тому

    Thank you sir. it's helpful ✌️

  • @antara1304
    @antara1304 6 років тому

    Very helpful Sir.

  • @bubusharma9135
    @bubusharma9135 5 років тому

    Excellent

  • @knowledgetechzy9207
    @knowledgetechzy9207 7 років тому +1

    Sir can u make a video on red-black tree

  • @pragyasharma6231
    @pragyasharma6231 6 років тому +1

    Insertion and deletion cases in tbt

  • @Hermioneswand1
    @Hermioneswand1 4 роки тому

    Thank you so much sir. Extremely clear and valuable explanation!

  • @zerodhansmarttraders
    @zerodhansmarttraders 5 років тому

    good teach

  • @siddheshnaik4956
    @siddheshnaik4956 7 років тому +1

    u are awesomebruh...thanksfor thiss...

  • @anuzravat
    @anuzravat 11 місяців тому

    thanku so much sirrrr

  • @Gandhiboy
    @Gandhiboy 3 роки тому

    Thank u so much ❤️

  • @sumansitzone8063
    @sumansitzone8063 3 роки тому

    Very nice

  • @saishwadkar4557
    @saishwadkar4557 6 років тому +2

    Excellent explanation !
    Where can we find the code for TBT?

  • @rohitha469
    @rohitha469 5 років тому

    Thank you sir😀😀😀

  • @SaurabhSingh-lf6df
    @SaurabhSingh-lf6df 6 років тому +1

    Good going...

  • @gunjanfitness8738
    @gunjanfitness8738 4 роки тому

    Excellent bro 😊

  • @afz523
    @afz523 Рік тому

    Why didn't the null pointer also indicate itself just like the dummy node ?

  • @sreenaunnikrishnan3135
    @sreenaunnikrishnan3135 3 роки тому

    Could you please provide a video on priority queue.. ?

  • @anuragsmusic
    @anuragsmusic 7 років тому +1

    Sir plz explain benefits of TBT Over Simple binary tree

    • @saswatasarkar7792
      @saswatasarkar7792 7 років тому +3

      Well, as far as I can understand TBT from Sir's lecture, and wondering about the purpose, I feel by threading we serve the following :
      1. We are utilising the NULL Pointers at the extreme ends, for some purpose, instead of wasting it, and using the benefits of Circular Linked List.
      2. Similar to Circular List, where we can move from node to node without starting from header node itself, in TBT too, we can move to the root of the subtree, or to the ancester node, without starting from root again. In this vein, we somehow simulate the situation of double linked circular property in a hierarchical data structure.
      Thus I feel, we can both recursively and non-recursively traverse the tree, without the need of any stack (implicit or explicit) and therein optimizing the space and time complexities associated
      Thats what I feel and hope that helps. However, Sir is the best judge to comment.

  • @chrisogonas
    @chrisogonas 3 роки тому

    Awesome!

  • @snehaselvakumar465
    @snehaselvakumar465 3 роки тому

    Thanks a ton..

  • @crankyysalt6963
    @crankyysalt6963 10 місяців тому

    bestt🎉

  • @architsharma7958
    @architsharma7958 5 років тому

    sir, can you please make a video on skiplist
    thankyou

  • @ajaymaddineni685
    @ajaymaddineni685 6 років тому

    Sir, how was the insertion is done in threaded binary tree

  • @andrearamirez5481
    @andrearamirez5481 7 років тому +3

    Te amo !