Data structures: Binary Tree

  Рет қаралды 1,470,558

mycodeschool

mycodeschool

Күн бұрын

See complete series on data structures here:
• Data structures
In this lesson, we have discussed binary tree in detail. We have talked about different types of binary tree like "complete binary tree", "perfect binary tree" and "balanced binary tree" and their properties. We have also discussed how cost of operations in a tree may depend upon height of the tree and why we want a tree to be dense and its height to be minimum. Finally, we talked about two possible implementations of binary tree - a) using dynamically created nodes and b) using arrays.
For practice problems and more, visit: www.mycodeschoo...
Like us on Facebook: / mycodeschool
Follow us on twitter: / mycodeschool

Пікірлер: 382
@saikumar555
@saikumar555 4 жыл бұрын
Felt very sad that the guy who was founder of these courses passed away on June 2014 . in a car accident! but he is alive with his videos!!! RIP !! :(
@nicolasgoosen5142
@nicolasgoosen5142 3 жыл бұрын
Yes, they're fantastically dense full of info and comprehensive.
@aakashSky-0
@aakashSky-0 3 жыл бұрын
how do you know this? who is running the channel now, cuz the last video on this channel is 4 years old.... please reply I really wanna know the answers.....
@findoc9282
@findoc9282 3 жыл бұрын
he always live in our heart, never be forgot. Every moment we get inspired in some moment in the future
@rchtchauhan
@rchtchauhan 3 жыл бұрын
@@qq3801 thanks buddy for this
@databaseteacher
@databaseteacher 3 жыл бұрын
sad to hear that. RIP
@mycodeschool
@mycodeschool 10 жыл бұрын
Here is the next video - Data structures: Binary Search Tree
@nishant73391
@nishant73391 9 жыл бұрын
+mycodeschool at 13:20 you show the height of the left child of root is 2. The height of left child of 2 is 0 here not 1. so how the height is 2?
@sambitsarkar6987
@sambitsarkar6987 8 жыл бұрын
+NISHANT NIKET You are right. The height of the left child of 2 is 1 and not 0. But we are talking about the abs difference between the height of left and right sub tree. So, lheight = 1, Rheight = 1, lheight - Rheight = 0. Hope this helps!!
@cafafans
@cafafans 4 жыл бұрын
I have been watching this video since 2015 and I never get tired even on this 2019. Thank you so much for this wonderful work.
@rohithpokala
@rohithpokala 4 жыл бұрын
@@cafafans me too
@DOOREO
@DOOREO 4 жыл бұрын
mycodeschool ahhhhh.. I see!! *pointer to “the next video”...... GENIUS teachings
@hariprasadramakrishnan6241
@hariprasadramakrishnan6241 10 жыл бұрын
Awesome explanation.. I have a doubt though.. In the definition of complete binary tree in the video, it says all levels except possibly the last are completely filled, What do u mean by last here? We can have complete binary trees with incomplete last and incomplete last but one levels ...
@sumanjha3914
@sumanjha3914 7 жыл бұрын
Hi, I need a video on B tree insertion, traversing and deletion
@Anoopegi
@Anoopegi 9 жыл бұрын
please give a lecture on avl tree ,threaded trees and graph using link list
@gaganb.9408
@gaganb.9408 7 жыл бұрын
sir, if we check the height of the node 2, upto subtree it calculates to 2, but if i check the same for one upto subtree then it should be 0, because |1-1|=0, instead of 1? please if you can clear this doubt
@eshaan7_
@eshaan7_ 5 жыл бұрын
If anyone is having confusion between depth and height, think of the analogy that we measure the 'depth' of sea from it's surface and the 'height' of a person from toe to head. PS: This was taken from a stackoverflow thread.
@nareshramini1796
@nareshramini1796 4 жыл бұрын
I'm still confused about height and depth of a tree!
@astagfargamer
@astagfargamer 4 жыл бұрын
what do you mean!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1
@thewatcherlollol
@thewatcherlollol 4 жыл бұрын
stole this right off of Stackoverflow. Credit the person smh.
@dhruvgaba8516
@dhruvgaba8516 4 жыл бұрын
Let's imagine an example of a fish swimming in the sea. Here, fish resembles a node, and the height of the fish from the sea bed resembles the height of the node and the depth of the fish from the surface of the sea resembles the depth of the node. Have a look at the diagram below: _ _ _ _ _ _ _ _ _ _ _ _ _ == surface (root node) | | == Depth from the surface of the sea (if there are d no. of edges to get to node x) | ((*)) === Fish Any particular node (x) | | == Height from the bottom of the sea (if there are h no. of edges from the bottom-most leaf) | _ _ _ _ _ _ _ _ _ _ _ _ _ == sea bed (leaves, end of tree)
@akshaysolanki4340
@akshaysolanki4340 4 жыл бұрын
Eshaan thanks for sharing
@learningisjoy8613
@learningisjoy8613 10 жыл бұрын
Thanks for your hardwork...you did awesome job that benefit many students like me...Thumbs up and keep on sharing.
@mycodeschool
@mycodeschool 10 жыл бұрын
Jamyang Tashi Thans a lot :)
@sersuplado1354
@sersuplado1354 5 жыл бұрын
J
@maryjaneponcedeleon4372
@maryjaneponcedeleon4372 5 жыл бұрын
🙌🏻
@Dhruv-jf1ho
@Dhruv-jf1ho 3 жыл бұрын
@@mycodeschool Helped me in 2020
@anveshreddypinnapareddy3552
@anveshreddypinnapareddy3552 3 жыл бұрын
@@Dhruv-jf1ho yeah, always has been 🙌
@md-ayaz
@md-ayaz 8 жыл бұрын
Instead of thanking him on comment section. You could white list his channel on Ad-block ( if you are using one).
@TheOverAndAround
@TheOverAndAround 10 жыл бұрын
at 13:04 I am confused how you say the height of left subtree is 1? I thought it was 2. Say node x is the one in red. I watched the previous vid and it says, the height of x is the number of edges in the longest path of x to a leaf. I counted 2? I look at it this way to make it easier. if left subtree has no edge - height = 0 if right subtreee has no edge - height = 0 if left or right subtree has an edge, add up all the edges leading to the deepest leaf node then use your formula diff = | leftsubtree_height - rightsubtree_height |
@mycodeschool
@mycodeschool 10 жыл бұрын
Matt Stewart - We are saying height of left and right subtrees. Height is defined as number of edges in some longest path from root to a leaf. For the sub-trees, the root node is not the node marked in red. For left subtree, root node is the left child and for right sub-tree root node is the right child. We need to calculate from root of the respective subtrees. Let me know if this is still not clear to you. Actually, you can calculate the diff, by saying 0 height if there is no child. Actual diff wont change. Lot of people do that. That's ok.. But when we say subtree, we cannot count the node (marked in red here) itself.
@TheOverAndAround
@TheOverAndAround 10 жыл бұрын
mycodeschool thanks so much, that makes sense, I didn't understand where the subtree started.Learning alot from your clear vids.
@simonetruglia
@simonetruglia 10 жыл бұрын
Matt Stewart Thanks for the question :)
@GauravTayal26
@GauravTayal26 7 жыл бұрын
Still not clear. Height of left subtree is 2 and not 1 since there are 2 edges from root of left sub-tree to the leaf while chosing longest path. Please clarify
@prashanttrar9599
@prashanttrar9599 6 жыл бұрын
Height of the left subtree means counting no. of edges starting from the left node and not from the base root itself, maximum no. of edges from left node to the leaf node is 1 hence, height of left subtree is 1. Consider it as a new temporary tree of which base root is the left node and just calculate height of it.
@chiranjeeveemohapatra
@chiranjeeveemohapatra 2 жыл бұрын
for node2 at 12:51 , you mentioned diff = |1-(-1) | But Shouldn't it be |2-0| ? Left subtree has height 2 and right as 0... 0 because we still have node 2 and it's not empty node. The difference is 2 anyway.
@PrabhuGunaDeepakPallikonda
@PrabhuGunaDeepakPallikonda Жыл бұрын
Exactly my doubt!!! Thank you for confirming !!!
@yashchandraverma3131
@yashchandraverma3131 7 жыл бұрын
I click on every ads that you show because you are teaching me well and it is my duty to give some money from ads to you. Thanks mycodeschool.
@blackflame_
@blackflame_ 5 жыл бұрын
He passed away..
@lyfokzz3848
@lyfokzz3848 5 жыл бұрын
@@blackflame_ his friend passed away...
@blackflame_
@blackflame_ 5 жыл бұрын
@@lyfokzz3848 Whoever he was I owe him for helping me clear my courses
@lyfokzz3848
@lyfokzz3848 5 жыл бұрын
@@blackflame_ yup...some of the real IT/CS people will understand his work!
@shahriarmim4696
@shahriarmim4696 5 жыл бұрын
It's the cofounder Animesh Nayan. And I think he doesn't need anyone's money. And death happened to Late Harsha who was also a managing member of MyCodeSchool. Read this: blog.mycodeschool.com/2013/12/the-story-of-mycodeschool.html?view=classic
@TheTahlia1988
@TheTahlia1988 8 жыл бұрын
I cannot thank you enough for this playlist on Data Structures! Keep up the good work :)
@sunitsingh5429
@sunitsingh5429 9 жыл бұрын
i have a doubt..@13:06 why is the height of the left subtree 1 and not 2? i mean given that height of a node is the maximum path up from a leaf,shouldnt it be 2?
@theFifthMountain123
@theFifthMountain123 7 жыл бұрын
Note the word "subtree". Subtree is the blob after edge from the red node. The blob has 3 nodes total; height of the blob is 1. Thus, height of left subtree is 1.
@abhinavmishra6648
@abhinavmishra6648 7 жыл бұрын
theFifthMountain123 Thanks man!
@theFifthMountain123
@theFifthMountain123 7 жыл бұрын
Abhinav Mishra I'm a woman. Not your fault though, typical programmer is a nerdy guy which I'm not.
@ZeeshanAli-ck3ue
@ZeeshanAli-ck3ue 5 жыл бұрын
@@theFifthMountain123 if this is the case that you mentioned above then how did you find difference one at 12:49.AS your both lest and right sub-tree height is one.
@vrindabv
@vrindabv 5 жыл бұрын
anybody watching this in 2019
@o1-preview
@o1-preview 5 жыл бұрын
yup.
@SanchayGoyal
@SanchayGoyal 4 жыл бұрын
yup
@jill4470
@jill4470 4 жыл бұрын
Even this kind of video has this dumbass question
@StoreyofGee
@StoreyofGee 4 жыл бұрын
@@jill4470 Hahah so true
@bakibillah8759
@bakibillah8759 4 жыл бұрын
yeah, i have seen many tutorials and articles but this one seemed to me best
@sourabhdattawad9244
@sourabhdattawad9244 9 жыл бұрын
Best data structures tutorial around the web. Thanks for enlightening!
@human-011
@human-011 5 жыл бұрын
anybody watching in 2018
@irfanansari6448
@irfanansari6448 5 жыл бұрын
2019
@tusharthurawa2830
@tusharthurawa2830 5 жыл бұрын
2019
@adeboyeoyeniyi9473
@adeboyeoyeniyi9473 5 жыл бұрын
2019 lol
@deepgagan9015
@deepgagan9015 5 жыл бұрын
2019
@human-011
@human-011 3 жыл бұрын
again watching in 2021
@ishratrhidita9393
@ishratrhidita9393 6 жыл бұрын
How did you get 1 left child in 13:04 seconds? There are two edges from the left subtree to the leaf.
@eagerassaultixopi4558
@eagerassaultixopi4558 5 жыл бұрын
left subtree is the node left to the node marked in red which has height of 1 where as right subtree is the tree on the right of red marked node which has height of -1 coz it is empty
@MVK-eo7gg
@MVK-eo7gg 5 жыл бұрын
@13:08 How is the height of left sub tree -1? I think it should be 2, right?
@franciscoprin4091
@franciscoprin4091 6 жыл бұрын
I'm confused in minute 13:10. The "h_left" should be 2. There are two edges before reach one of leafs in the bottom. Therefore, diff = | h_left - h_right| = | 2 - (-1) | = 3 Could someone clarify this for me, please? (sorry for the grammatical mistake.)
@abhijitroy4702
@abhijitroy4702 6 жыл бұрын
I also thought so.
@alijafari9576
@alijafari9576 10 жыл бұрын
Even if the tree is not complete you are still able to use an array. You can use -1 or any invalid number for the children that are missing!
@mycodeschool
@mycodeschool 10 жыл бұрын
Ali Jafari That's true !!
@aditipatil7377
@aditipatil7377 9 жыл бұрын
hats off to u sir ! ur videos r life savers ! helped me alot during my dsa viva !! u r truly great teacher ! :))
@rajatnarlawar
@rajatnarlawar 9 жыл бұрын
u teach very well...finding it easy cuz of u..:)
@nicolasgoosen5142
@nicolasgoosen5142 3 жыл бұрын
This is an awesome series - even 7 years later!
@josedubois2295
@josedubois2295 9 жыл бұрын
You are an amazing teacher thank you so much for helping me understand these topics more completely.
@akumasdeception
@akumasdeception 3 жыл бұрын
This is a masterpiece, thank you so much for the job that you're doing!
@gigachad6844
@gigachad6844 2 жыл бұрын
Guys there also exists a different version ACBT = Complete Binary Tree of mycodeschool Complete BT = Perfect Binary Tree of mycodeschool While Full/Strict/Proper and Perfect BT all are same.
@WiseFatOwl
@WiseFatOwl 5 жыл бұрын
Thanks a lot for this data structure playlist! A life saver if u ask me.. I know I know i'm pretty late.. but still thanks again!
@RebeliousSapien
@RebeliousSapien 2 жыл бұрын
oh my god this was so helpful. i've read so much content about trees and watched so many videos that always left me even more confused. But THIS ... this was just perfect and extremely well explained. thank you so much for making this video.
@minhnguyennhat5112
@minhnguyennhat5112 6 жыл бұрын
Thank you very much for your work. This channel is a fucking gold mine!!!
@premalathak6748
@premalathak6748 10 жыл бұрын
please teach redblack tree and splay trees.
@abdal720
@abdal720 7 жыл бұрын
bhai lagta tum pass karwao gey!
@docuscientifique
@docuscientifique 10 жыл бұрын
You saved my life :) I love you :)
@prabaljainn
@prabaljainn 4 жыл бұрын
GOD BLESS YOUR Soul SIR "Humblefool"
@renon3359
@renon3359 5 жыл бұрын
Hands down best videos on the net for Data Structure. Awesome work man.
@TheSteak1984
@TheSteak1984 9 жыл бұрын
Great tutorials. Thank you.
@eimaisklhros
@eimaisklhros 8 жыл бұрын
damn! i have to get a math revision asap
@GauravSehrawat8888
@GauravSehrawat8888 10 жыл бұрын
Just too Good.. Awesome concepts . Channel will be popular soon !!
@vivekk232
@vivekk232 8 жыл бұрын
excellent sir....& lots of thanks to help me as such easy language to learn tree...I appreciate u sir
@premalathak6748
@premalathak6748 10 жыл бұрын
Thank you so much for wonderful video with the subtitles. Finally,now i can understand what a binary tree is.
@philtrem
@philtrem 9 жыл бұрын
These videos are fantastic, thanks a bunch!
@SonuSonu-tk5pk
@SonuSonu-tk5pk 7 жыл бұрын
why dont u go to ur country and study
@philtrem
@philtrem 7 жыл бұрын
o.Ô
@saurabhshah8802
@saurabhshah8802 6 жыл бұрын
Haha. What's wrong with you man? Its KZbin. Its free and available to all.
@victorkiwumulo5712
@victorkiwumulo5712 2 ай бұрын
Im just watching it in 2024
@prakrutijani4205
@prakrutijani4205 4 жыл бұрын
Excellent even after 5 years..Thank you
@lorimemontanes8950
@lorimemontanes8950 2 жыл бұрын
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.
@amankhubani2413
@amankhubani2413 4 жыл бұрын
Hey at 13:23, the height of left subtree should be 2, correct? why have you taken it as 1?
@qaziahmed9850
@qaziahmed9850 8 жыл бұрын
Thanks a lot sir yoh have good job and great effect in this way to help students whose want to increase the knoweldge wd conpect.
@ashfaqtunio1311
@ashfaqtunio1311 8 жыл бұрын
Excellent! Explained very well. Thanks for these videos
@VIKASHKUMAR-qt7pk
@VIKASHKUMAR-qt7pk 5 жыл бұрын
thanks to making such a nice tutorial it will covers all necessary information to starting binary tree. thanks again.
@georgioskyritsis2929
@georgioskyritsis2929 9 жыл бұрын
The best explanation i've ever seen. Thank you!
@rhinethetauren
@rhinethetauren 3 жыл бұрын
Great lesson. The log stuff threw me off, but I just need to review all that anyway
@surekasunder5923
@surekasunder5923 4 жыл бұрын
This is a great video. Just had one doubt, i understood we consider height of node as 0 if there are no child nodes and height of tree as -1 if there is no root. However, around 13th minute we considered tree with no child nodes with height -1(instead of 0), also made height of left sub-tree as 1(instead of 2).
@badxcode
@badxcode 3 жыл бұрын
yeah, I got confused there too. at 13:11 it should be |2-0| = 2 not |1-(-1)| = 2 by his definition. Am I right?
@AwaraGhumakkad
@AwaraGhumakkad 2 жыл бұрын
2power0 + 2 power1 + 2power2 ........ 2powerh generic would be 2powerh, how come its 2(power h+1) -1 ?
@anurakboonyaritpanit9129
@anurakboonyaritpanit9129 9 жыл бұрын
thank you mycodeschool for good and free video tutorial. it is a complete data structure. help me understand outside my class.
@PrashantKumar-qk3ew
@PrashantKumar-qk3ew 8 жыл бұрын
I want to provide a suggestion that when you write at down of the board it gets hidden by the words displaying above it. Mind it please, it will further enhance your work and thanx for providing the best.😊
@ewanmcdonnell6990
@ewanmcdonnell6990 9 жыл бұрын
Thank you for your good explanation.
@vikashgola287
@vikashgola287 2 жыл бұрын
So i did the calculations and found that an average computer with a CPU frequency of 3GHz(which can execute 3 billion instructions per second) will take upto 13398978947110 years to execute 2^100 instructions. Crazy alright.
@ketkidavda8588
@ketkidavda8588 7 жыл бұрын
this is awesome !!! youre a very good teacher :) thanks
@madanmohan5661
@madanmohan5661 2 жыл бұрын
Wouldn't be the diff be, diff = height of left sub tree - right subtree, so -> (2 - 0) = 2. Because left subtree have a max depth or height of 2 and right side we don't have a subtree so it will be 0. So the diff will be = | (2-0) | = 2 not | 1 - (-1) |. Can someone clarify?
@hiba0090792
@hiba0090792 3 жыл бұрын
if you sir dont go to heaven i will cause a fuss in the judgment day
@derrickellerbie4806
@derrickellerbie4806 5 жыл бұрын
Great video but I would recommend going a little slower. The math is important and I think you went too fast on those parts. Thanks for the good work!
@fondfrequencies9409
@fondfrequencies9409 3 жыл бұрын
I watch it at 1.5X bro...and u still want it to be slower??😅
@saiavinashduddupudi8975
@saiavinashduddupudi8975 9 жыл бұрын
@mycodeschool A Small Correction:- Maximum no of nodes in a complete binary tree with height h is 2^(no. of levels+1) - 1. In the video it is written as 2^(no of levels) - 1.
@MuhammadRizkyEkaArlin
@MuhammadRizkyEkaArlin 8 жыл бұрын
+saiavinash duddupudi i think you are mistaken. No. of levels is equal to height + 1.
@brexittortoises6129
@brexittortoises6129 2 жыл бұрын
Couldnt understand much.. Seemed to be read out from a page.Helpful for quick revision, but not for understanding.
@RM-lb7xw
@RM-lb7xw 3 жыл бұрын
Implementation of binary trees using Arrays is only possible for Perfect Binary Trees, right? Not Complete Binary Trees?
@shahriarmim4696
@shahriarmim4696 2 жыл бұрын
6:20 the sum of powers of 2 is one less than the next powers of 2, in particular 2^0 + 2^1 + ... + 2^n = 2^(n+1) - 1.
@ductive
@ductive 9 ай бұрын
12:00 I think if we say that height of a tree is the number of nodes on the longest downward path minus 1. we would avoid this possible confusion.
@ravitejachatti4711
@ravitejachatti4711 3 жыл бұрын
how the balanced binary tree is calculated
@Dylanbforthree
@Dylanbforthree 9 жыл бұрын
Awesome videos, keep up with adding the captions please!!! Makes it so easy to follow along, great tutorial!
@noaht.8928
@noaht.8928 6 жыл бұрын
If you compare it with the big o sheet then your explanation are not correct. Deletion with Linked list is O(1) bigocheatsheet.com/
@sampannapokhrel
@sampannapokhrel 2 жыл бұрын
At 13:15. wouldn't it be 2-(-1) = 3 as the height difference. As I could see 2 edges from that to the leaf node.
@VisualMASM
@VisualMASM 7 жыл бұрын
Great video. However, it's missing a huge piece of completing the explanation of trees. In your example, you are showing node 2 with 3 children. It would have been much more helpful to show how a generic tree is implemented in C/C++ then jumping right away to a binary tree explanation. For example, node 2 has 3 children. How would you implement a tree with nodes that have more than 2 children? You would have to show the dynamic nature of how to manage x number of children. This would have been much more helpful and would have completed the explanation of trees than jumping to binary trees.
@Kovai-Siva
@Kovai-Siva 10 жыл бұрын
Great videos. Thanks a lot. But having one question, in the last few minutes in video you are talking abt the binary tree implementation using arrays. You have told that the link identify equation 2i+ 1 and 2i + 2 is valid only for complete binary tree but example you have taken is perfect binary tree. Now i am confused whether the equation holds good for perfect or complete binary tree. In case of complete binary tree there can be empty links, if that is the case how we will identify the links. Please clarify.
@mycodeschool
@mycodeschool 10 жыл бұрын
Hi Siva, You can always put some value for NULL for empty links. Like lets say, you will put "-1" as value to mean NULL. So, as such, any binary tree and not just complete binary tree can be stored in an array, the only thing is that you will waste a lot of memory. In complete binary tree, only the last level may be unfilled. With this formula, we will not need extra space in the array for NULL links in case of complete binary tree. If 2i or 2i+1 is outside the range of array, we do not have a child. Just sit with this and think for some time.
@Kovai-Siva
@Kovai-Siva 10 жыл бұрын
Thanks for your response. Got it.
@harin.g6806
@harin.g6806 5 жыл бұрын
perfect . Thank you very much.
@Omar_Muhammad
@Omar_Muhammad 2 жыл бұрын
Thanks, a lot.
@MdRumanHossain
@MdRumanHossain 7 жыл бұрын
Have your own blog/site on programming sir,. if then please link.
@saikumarnallagangula
@saikumarnallagangula 10 жыл бұрын
thank you so much for the videos. I have never thought that I would learn DataStructures with so ease. Really loved each and every video(content, concepts and the way of teaching). Eagerly waiting for other Concepts of DataStructure and Specially Trees and Graphs. Hope you would continue with many more.
@ajaytillu
@ajaytillu 10 жыл бұрын
rey bujji chadavalekapothunnam ra
@bharathirv8479
@bharathirv8479 5 жыл бұрын
Can u plz upload video for binary tree delete operation. Not binary search tree.
@techno_bob
@techno_bob 5 жыл бұрын
Dude height means no.of edges from node to the farthest leaf node??? But you are taking height as 1 from root to its child. is it correct?
@gunjankumar3068
@gunjankumar3068 5 жыл бұрын
height of subtree of node not node itself
@pramodaravind
@pramodaravind 8 жыл бұрын
can someone explain me why only we can have left nodes to the leaf node of tree as possible and why cant for right nodes and still call it a complete binary tree?
@JeshOrquina
@JeshOrquina 10 жыл бұрын
Do you have any tutorials on threaded binary trees? Is there any possibility you could make one? I have trouble understanding it in class and your tutorials have been very useful to me so it would be great if you could make one. Thanks!
@vjkumk
@vjkumk 2 жыл бұрын
seems i need to learn algebra to understand those Log :(.. lost after 7.22
@The_new_age_code
@The_new_age_code Жыл бұрын
in the minut 9:00, why the min-height is log2(n) and maximum is n-1?
@chetanbhardwaj5088
@chetanbhardwaj5088 9 жыл бұрын
the no. of nodes in a perfect binary tree with height h will be =(2^h)-1......not (2^h+1)-1......or ...........the no. of nodes of a perfect binary tree with max LEVEL m will be = 2^0+2^1+2^2......+2^m.......
@asishraz6173
@asishraz6173 4 жыл бұрын
Lots and lots of information in just one video. Thank you so much for your effort and dedication towards sharing this valuable piece of information. Keep up the great work.
@suman6327
@suman6327 5 жыл бұрын
Some definitions / references : stackoverflow.com/questions/2603692/
@PepeTostado
@PepeTostado 2 жыл бұрын
How would you reccomend me to learn this? because I'm having a hard time processing it, thanks in advance.
@abhilashbss9059
@abhilashbss9059 9 жыл бұрын
fantastic work .... very easy n smooth take over
@dilrubakose
@dilrubakose 7 жыл бұрын
You are such an amazing person thanks a lot :)
@ivandrofly
@ivandrofly 6 ай бұрын
14:16 representing BST (binary search tree) as array
@pb6785-k3m
@pb6785-k3m 7 жыл бұрын
Considering an empty AVL tree and successive insertion of 1,2,3,4,5 and 6 into it, which of the following is the post-order traversing of the final AVL tree? A: 1,3,2,5,6,4 B: 1,3,6,2,5,4 C: 3,1,2,6,5,4 D: 1,3,2,6,5,4 My ans is A...Sir, Please reply close answer
@utsargapokharel8709
@utsargapokharel8709 7 жыл бұрын
one question friends, shouldn't a complete binary tree also be a strict binary tree? it is otherwise in the video
@tejaswininandan7025
@tejaswininandan7025 5 жыл бұрын
Ur videos r awesome.......... But one simple request........can u plz put that subtitles little down coz we can't see what is written on bottom of the board
@toufiq-ul-alam6475
@toufiq-ul-alam6475 7 жыл бұрын
suddenly parent child becomes nodes and leaves and etc....why... why cannot you stick to root, branch, leaf? making so many relationships and later not using them at all?
@sonnybrown4758
@sonnybrown4758 4 жыл бұрын
I was with you until half way through the video lol
@hitesh123ism
@hitesh123ism 5 жыл бұрын
Best lecture on a binary tree so far.
@yalmazkhan2974
@yalmazkhan2974 4 жыл бұрын
Question : What do you mean by complete binary tree at 5:18, Do you mean that all L0 - L2 nodes must have 2 children, or do you mean numerical fulfillment of nodes?
@pawanBilaspur
@pawanBilaspur 4 жыл бұрын
Your Voice is very clear but have some example while explaining this Tree mathematics, also slow down in between,don’t run away with all the lecture
@PriyojitKharibam
@PriyojitKharibam 6 жыл бұрын
Can anyone explain almost complete binary tree and difference between almost complete binary tree and complete binary tree??
@PanZheng
@PanZheng 7 жыл бұрын
By definition, a tree is is a UNdirected graph, which means the edges should not have arrows. Good explanations though!
@KUSHGPATEL
@KUSHGPATEL Жыл бұрын
Can a binary tree also be classified as a generic tree?
@mxkep
@mxkep 7 жыл бұрын
All your data structures videos are great ! Thank you so much!
Data structures: Binary Search Tree
19:28
mycodeschool
Рет қаралды 1,3 МЛН
Understanding B-Trees: The Data Structure Behind Modern Databases
12:39
Amazing Parenting Hacks! 👶✨ #ParentingTips #LifeHacks
00:18
Snack Chat
Рет қаралды 23 МЛН
Остановили аттракцион из-за дочки!
00:42
Victoria Portfolio
Рет қаралды 3,8 МЛН
Data structures: Introduction to Trees
15:50
mycodeschool
Рет қаралды 1,4 МЛН
Binary tree traversal - breadth-first and depth-first strategies
11:54
Data Structures: Trees
9:57
HackerRank
Рет қаралды 1 МЛН
AVL Trees & Rotations (Self-Balancing Binary Search Trees)
20:38
Back To Back SWE
Рет қаралды 339 М.
Binary Search Tree in Tamil | Data Structures and Algorithms CD3291 Lectures in Tamil
21:02
4G Silver Academy தமிழ்
Рет қаралды 84 М.
Binary tree traversal: Preorder, Inorder, Postorder
14:29
mycodeschool
Рет қаралды 958 М.
Learn Binary search trees in 20 minutes 🔍
20:25
Bro Code
Рет қаралды 162 М.
10.1 AVL Tree - Insertion and Rotations
43:08
Abdul Bari
Рет қаралды 1,2 МЛН
Amazing Parenting Hacks! 👶✨ #ParentingTips #LifeHacks
00:18
Snack Chat
Рет қаралды 23 МЛН