<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>coding interview prep Archives - NeuralLantern.com</title>
	<atom:link href="https://www.NeuralLantern.com/tag/coding-interview-prep/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.NeuralLantern.com/tag/coding-interview-prep/</link>
	<description></description>
	<lastBuildDate>Mon, 27 Apr 2026 06:42:56 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.4</generator>

<image>
	<url>https://www.NeuralLantern.com/wp-content/uploads/2025/04/cropped-2025-04-04-Lantern-03-32x32.png</url>
	<title>coding interview prep Archives - NeuralLantern.com</title>
	<link>https://www.NeuralLantern.com/tag/coding-interview-prep/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Binary Search Tree Insertion Tutorial: Building a BST from Scratch Step by Step</title>
		<link>https://www.NeuralLantern.com/binary-search-tree-insertion-tutorial-building-a-bst-from-scratch-step-by-step/</link>
					<comments>https://www.NeuralLantern.com/binary-search-tree-insertion-tutorial-building-a-bst-from-scratch-step-by-step/#respond</comments>
		
		<dc:creator><![CDATA[mike]]></dc:creator>
		<pubDate>Mon, 27 Apr 2026 06:42:54 +0000</pubDate>
				<category><![CDATA[Binary Search Trees]]></category>
		<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Data Structures]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[algorithms]]></category>
		<category><![CDATA[binary search tree]]></category>
		<category><![CDATA[binary search tree tutorial]]></category>
		<category><![CDATA[binary tree]]></category>
		<category><![CDATA[BST insertion]]></category>
		<category><![CDATA[BST insertion step by step]]></category>
		<category><![CDATA[build BST from scratch]]></category>
		<category><![CDATA[coding interview prep]]></category>
		<category><![CDATA[computer science]]></category>
		<category><![CDATA[data structures]]></category>
		<category><![CDATA[inorder traversal]]></category>
		<category><![CDATA[self balancing trees]]></category>
		<category><![CDATA[time complexity BST]]></category>
		<category><![CDATA[tree height]]></category>
		<guid isPermaLink="false">https://www.NeuralLantern.com/?p=333</guid>

					<description><![CDATA[<p>Learn how to build a binary search tree (BST) by inserting numbers one by one. Follow the insertion process for the sequence 88, 21, 3, 6, 72, 34, 11, 1, 90, 65, 55, 17, 23, 9. See left/right decisions, pointer updates, inorder verification for sorted order, tree height calculation (6), and discussion of O(h) time complexity versus log n for balanced trees. Clear explanations without skipping steps.</p>
<p>The post <a href="https://www.NeuralLantern.com/binary-search-tree-insertion-tutorial-building-a-bst-from-scratch-step-by-step/">Binary Search Tree Insertion Tutorial: Building a BST from Scratch Step by Step</a> appeared first on <a href="https://www.NeuralLantern.com">NeuralLantern.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="Binary Search Tree Insertion Tutorial: Building a BST from Scratch Step by Step" width="1380" height="776" src="https://www.youtube.com/embed/-vtcFOEkrEk?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>



<p class="wp-block-paragraph">In this hands-on tutorial, we build a binary search tree (BST) from scratch by inserting numbers one by one: 88, 21, 3, 6, 72, 34, 11, 1, 90, 65, 55, 17, 23, and 9. Watch as each node finds its correct position following BST rules, with clear explanations of left and right child decisions, parent pointers, and why the tree ends up looking a bit wonky but is still valid.</p>



<p class="wp-block-paragraph">We cover the full insertion process, verify the tree is a proper BST by checking inorder traversal (sorted order), confirm it&#8217;s a connected acyclic rooted binary tree, and discuss tree height, time complexity (O(h) where h=6 for this tree), and why self-balancing trees matter for better performance.</p>



<p class="wp-block-paragraph">Great practice for computer science students, programmers learning data structures, or anyone prepping for coding interviews. No fancy animations &#8211; just real step-by-step drawing and reasoning.</p>



<p class="wp-block-paragraph">If you want more BST practice videos or specific insertion sequences, drop a comment below!</p>



<p class="wp-block-paragraph">00:00 Introduction to BST Practice<br>00:35 Insertion Sequence Overview<br>00:59 Rules for Building BST<br>01:30 Insert 88 as Root<br>02:20 Continue building the tree from input data<br>13:04 Finish building the tree<br>14:56 Clean Up Diagram<br>15:24 Verify Inorder Traversal<br>16:48 Confirm Tree Properties<br>19:23 Tree Height and Time Complexity<br>22:01 Search Example for 55<br>23:09 Log Time vs Actual Height<br>24:21 Conclusion and Future Topics</p>



<p class="wp-block-paragraph">=-=-=-=-=-=-=-=-=</p>



<p class="wp-block-paragraph">Thanks for watching!</p>



<p class="wp-block-paragraph">Find us on other social media here:</p>



<ul class="wp-block-list">
<li>https://www.NeuralLantern.com/social</li>



<li>Twitter / X: https://x.com/NeuralLantern</li>



<li>Rumble: https://rumble.com/c/c-3696939</li>



<li>BitChute: https://www.bitchute.com/channel/pg1Pvv5dN4Gt</li>



<li>Daily Motion: https://www.dailymotion.com/neurallantern</li>



<li>Minds: https://www.minds.com/neurallantern/</li>



<li>Odysee: https://odysee.com/@NeuralLantern:5</li>
</ul>



<p class="wp-block-paragraph">Please show your support!</p>



<ul class="wp-block-list">
<li>Buy me a coffee: https://ko-fi.com/neurallantern</li>



<li>Subscribe + Sharing on Social Media</li>



<li>Leave a comment or suggestion</li>



<li>Subscribe to the Blog: https://www.NeuralLantern.com</li>



<li>Watch the main &#8220;pinned&#8221; video of this channel for offers and extras</li>
</ul>



<p class="wp-block-paragraph">Hello there! Let&#8217;s practice constructing a binary search tree from scratch.</p>



<p class="wp-block-paragraph">In my previous video, we actually did this already, and in other previous videos we defined</p>



<p class="wp-block-paragraph">what is a binary search tree and some terminology and stuff like that, but I thought it would</p>



<p class="wp-block-paragraph">be nice to have two practice videos up. I&#8217;m willing to put more up if people want to make</p>



<p class="wp-block-paragraph">comments about more trees that they want to see inserted. For now, I&#8217;m just going to say</p>



<p class="wp-block-paragraph">we will add the following sequence of numbers. So this is a little diagram from the last time we</p>



<p class="wp-block-paragraph">did this. Let me just, oh, I&#8217;m supposed to make that full screen so it can be bigger. Whoops.</p>



<p class="wp-block-paragraph">Let me go ahead and add a new slide here. And then I&#8217;m going to do,</p>



<p class="wp-block-paragraph">Okay, so we&#8217;re going to try to add the following sequence of numbers.</p>



<p class="wp-block-paragraph">Like I said in my other video, don&#8217;t try to make the tree prettier.</p>



<p class="wp-block-paragraph">Don&#8217;t get mad if a number looks like it&#8217;s too far to the left or something.</p>



<p class="wp-block-paragraph">Just follow the normal rules of letting a node drop wherever it is supposed to drop</p>



<p class="wp-block-paragraph">according to the rules of building a binary search tree.</p>



<p class="wp-block-paragraph">So the first thing that I&#8217;m going to do is maybe draw a little arrow here.</p>



<p class="wp-block-paragraph">I&#8217;m going to do like a pink arrow to indicate, you know,</p>



<p class="wp-block-paragraph">You know, well, maybe I&#8217;ll do like a red one to indicate which number we&#8217;re actually trying to add at the moment.</p>



<p class="wp-block-paragraph">So it&#8217;s going to be the 88 first.</p>



<p class="wp-block-paragraph">Let&#8217;s see, we&#8217;ll put that right there.</p>



<p class="wp-block-paragraph">And then now let&#8217;s say that the 88 is going to drop into our tree somewhere.</p>



<p class="wp-block-paragraph">First question we have to ask ourselves is do we have a root node?</p>



<p class="wp-block-paragraph">We don&#8217;t have a root node, which means the number we&#8217;re trying to add should be the root node.</p>



<p class="wp-block-paragraph">And that&#8217;s it.</p>



<p class="wp-block-paragraph">So I&#8217;m going to draw like a little circle here, a little node.</p>



<p class="wp-block-paragraph">and I&#8217;m going to stick the number 88 inside of it we&#8217;re using integer t types</p>



<p class="wp-block-paragraph">if you recall the last videos these nodes are supposed to be able to hold</p>



<p class="wp-block-paragraph">almost any data type that you want they don&#8217;t have to be numbers but I&#8217;m just</p>



<p class="wp-block-paragraph">going to use numbers for the sake of this example because it&#8217;s easier so I&#8217;m</p>



<p class="wp-block-paragraph">going to say this is our root node it&#8217;s at the very top of the tree and we&#8217;re</p>



<p class="wp-block-paragraph">done adding 88 and that&#8217;s it next step we&#8217;re going to add the 21 so I&#8217;m just</p>



<p class="wp-block-paragraph">forward a little bit here and the 21 same question do we have a root node we currently do so that</p>



<p class="wp-block-paragraph">means we can&#8217;t actually put the 21 there so we have to make a decision does the 21 belong on the</p>



<p class="wp-block-paragraph">left or the right of the 88 the 21 is less than 88 which means it belongs on the left side so i&#8217;m</p>



<p class="wp-block-paragraph">just going to duplicate this and try to make a pretty diagram by sort of splitting the difference</p>



<p class="wp-block-paragraph">in terms of the empty space on the left between the edge of the screen and the existing root node</p>



<p class="wp-block-paragraph">and make sure that it goes down, you know, a full rank, you know, at least the full height of a node,</p>



<p class="wp-block-paragraph">maybe a little bit more, but you want to keep all same depth nodes on the same Y coordinate.</p>



<p class="wp-block-paragraph">It&#8217;s just easier to debug your diagrams that way.</p>



<p class="wp-block-paragraph">This one&#8217;s actually probably going to get messy. I might have to readjust this a few times.</p>



<p class="wp-block-paragraph">I think I recalled these were, these might&#8217;ve been bad numbers. I can&#8217;t remember.</p>



<p class="wp-block-paragraph">Okay. So the 21 is going to be the left child of the 88 because it belongs on the left side.</p>



<p class="wp-block-paragraph">So I&#8217;m just going to do my little connecting line here.</p>



<p class="wp-block-paragraph">connecting line here now 21 has a parent of 88 and 88 has a left child of 21 and we&#8217;re done adding</p>



<p class="wp-block-paragraph">the 21 so i&#8217;m going to move the arrow to the three we&#8217;re now trying to add the three node</p>



<p class="wp-block-paragraph">again we look at the root node we say okay that&#8217;s occupied so we can&#8217;t use that does three belong on</p>



<p class="wp-block-paragraph">the left or the right of the 88 well it&#8217;s less than 88 so it belongs on the left the left child</p>



<p class="wp-block-paragraph">again, does the three belong on the left or the right of the 21? It belongs on the left</p>



<p class="wp-block-paragraph">because it&#8217;s less than 21 and the left child of 21 is currently doesn&#8217;t exist. It&#8217;s null.</p>



<p class="wp-block-paragraph">So that means the three is going to be the new left child of the 21 node. Maybe just put it</p>



<p class="wp-block-paragraph">like right there, put the three there. And then I&#8217;m going to do the connecting line in your code.</p>



<p class="wp-block-paragraph">You can imagine that the left child pointer of the 21 node has now been set. So it&#8217;s pointing</p>



<p class="wp-block-paragraph">been set so it&#8217;s pointing to the brand new node we just made for the three and then inside of the</p>



<p class="wp-block-paragraph">three node its parent pointer is pointing to the 21 node okay so we&#8217;re done adding the three we</p>



<p class="wp-block-paragraph">move on to the six same thing that we did before we look at the root node uh the six belongs on</p>



<p class="wp-block-paragraph">the left so i&#8217;m gonna say go to the left the 21 node is it&#8217;s there it&#8217;s occupied so we have to</p>



<p class="wp-block-paragraph">left of 21 because it&#8217;s less than 21 we go down to the left then we look at the three that&#8217;s also</p>



<p class="wp-block-paragraph">occupied does the six belong on the left or right of three it belongs on the right side of three</p>



<p class="wp-block-paragraph">because it&#8217;s greater than three so that means the sixth node is going to be the right child</p>



<p class="wp-block-paragraph">of three again try to split the difference these diagrams get ugly fast i really</p>



<p class="wp-block-paragraph">i don&#8217;t i don&#8217;t want to rearrange the topology but i&#8217;m probably gonna have to</p>



<p class="wp-block-paragraph">I think I&#8217;m like crashing out here.</p>



<p class="wp-block-paragraph">Oh, no.</p>



<p class="wp-block-paragraph">Okay.</p>



<p class="wp-block-paragraph">Nope.</p>



<p class="wp-block-paragraph">Okay.</p>



<p class="wp-block-paragraph">Let me try one more time.</p>



<p class="wp-block-paragraph">These lines are killing me.</p>



<p class="wp-block-paragraph">Okay.</p>



<p class="wp-block-paragraph">I&#8217;m just going to update the three to a six and leave a little gap on that line.</p>



<p class="wp-block-paragraph">It&#8217;s fine.</p>



<p class="wp-block-paragraph">Now we&#8217;re ready to try to add the 72 node.</p>



<p class="wp-block-paragraph">We have a little relief here because this is not like a smaller and smaller number that we&#8217;re dealing with.</p>



<p class="wp-block-paragraph">So, well, we just look at the root node.</p>



<p class="wp-block-paragraph">72 belongs on the left side so I&#8217;m going to hop to the left here we then look at</p>



<p class="wp-block-paragraph">the 21 72 belongs on the right side because it&#8217;s greater than 21 so that</p>



<p class="wp-block-paragraph">means 72 is going to be the right child of 21 so I&#8217;m just going to select this</p>



<p class="wp-block-paragraph">make a duplicate try to keep the three and the six at the same you know y</p>



<p class="wp-block-paragraph">coordinate because they&#8217;re on the same descendancy rank they&#8217;re at the same</p>



<p class="wp-block-paragraph">you know generation whatever you want to call it so I&#8217;m going to put the 72 on</p>



<p class="wp-block-paragraph">And then I&#8217;m going to do our connecting line, indicating that both nodes now have pointers that refer to each other.</p>



<p class="wp-block-paragraph">Okay, we&#8217;re done adding the 72.</p>



<p class="wp-block-paragraph">I&#8217;m going to move this to the right a little bit.</p>



<p class="wp-block-paragraph">And then, oops, get rid of that little dot.</p>



<p class="wp-block-paragraph">Now we&#8217;re ready to add the 34.</p>



<p class="wp-block-paragraph">So the 34, we look at the 88 node occupied.</p>



<p class="wp-block-paragraph">We go left.</p>



<p class="wp-block-paragraph">We look at the 21 node.</p>



<p class="wp-block-paragraph">34 belongs on the right side of 21.</p>



<p class="wp-block-paragraph">of 21 so then we look at the 72 34 belongs on the left side of 72 so that means 34 is going to be</p>



<p class="wp-block-paragraph">the left child of 72 so I&#8217;m going to select one of these nodes and duplicate it and say that</p>



<p class="wp-block-paragraph">you have a left child of 72 now and it&#8217;s going to be the 34 node do my pointer connection real fast</p>



<p class="wp-block-paragraph">I haven&#8217;t been duplicating the pages. Okay. So, uh, I guess that&#8217;s just for me.</p>



<p class="wp-block-paragraph">We&#8217;ll move on to adding the 11 node.</p>



<p class="wp-block-paragraph">So we add the 11 node by looking at the root node first.</p>



<p class="wp-block-paragraph">11 belongs on the left side. We then look at the 21,</p>



<p class="wp-block-paragraph">11 belongs on the left of 21. Go to the left here. We look at the three,</p>



<p class="wp-block-paragraph">11 belongs on the right of the three. We go to the right,</p>



<p class="wp-block-paragraph">11 belongs on the right of the six node.</p>



<p class="wp-block-paragraph">This is definitely a gross graph at this point.</p>



<p class="wp-block-paragraph">at this point. So I&#8217;m going to duplicate this node here and try to split the difference between</p>



<p class="wp-block-paragraph">the six and the 21 in terms of like the free space. So I&#8217;m just going to drag this down a</p>



<p class="wp-block-paragraph">little bit there and say that 11 goes as the new right child of the six node. So</p>



<p class="wp-block-paragraph">just do that. This is a gross diagram. I might want to redraw this later.</p>



<p class="wp-block-paragraph">Now we&#8217;re ready to try to add the one node.</p>



<p class="wp-block-paragraph">the one again we look at the root node of the tree and it&#8217;s occupied so we can&#8217;t put it there</p>



<p class="wp-block-paragraph">we go to the left we go to the left again and the one belongs on the left of the three nodes so we</p>



<p class="wp-block-paragraph">have a little bit more room there so that&#8217;s good i&#8217;m gonna copy this node and make it the new left</p>



<p class="wp-block-paragraph">child of the three i&#8217;m gonna like say that our one is right there and then i&#8217;m gonna do the connecting line</p>



<p class="wp-block-paragraph">okay all right we&#8217;re done adding the one now I&#8217;m gonna add the 90 node oh this is</p>



<p class="wp-block-paragraph">gonna be nice and easy because the 90 definitely belongs on the right side of</p>



<p class="wp-block-paragraph">the 80 node whoops what happened okay sorry for making that noise I&#8217;m gonna</p>



<p class="wp-block-paragraph">duplicate this node here and make it the right child of the 88 node so let&#8217;s see</p>



<p class="wp-block-paragraph">kind of even there. So we&#8217;re going to put 90 right there. And then I&#8217;m going to do a connecting line</p>



<p class="wp-block-paragraph">in blue. Now we&#8217;re done adding the 90.</p>



<p class="wp-block-paragraph">So then we&#8217;re going to add the 65. 65 belongs on the left of the 88 node.</p>



<p class="wp-block-paragraph">So we&#8217;re kind of in left territory now. It&#8217;s kind of sucky again.</p>



<p class="wp-block-paragraph">And bounce down to the left. 66 belongs on the right side of the 21 node. So we look at the 72.</p>



<p class="wp-block-paragraph">look at the 72 it belongs on the left of the 72 we go there it belongs on the right of the 34 so we</p>



<p class="wp-block-paragraph">go right here as the new right child and the diagram kind of sucks at this point it&#8217;s a little</p>



<p class="wp-block-paragraph">cramped but i&#8217;m going to try my best to split the difference between the 34 and the 32 visually to</p>



<p class="wp-block-paragraph">make a nice easy to debug graph so maybe like somewhere around there put 66 then i&#8217;m going to</p>



<p class="wp-block-paragraph">So the 66 is now the right child of 34.</p>



<p class="wp-block-paragraph">Okay, next number that we&#8217;re going to add is my computer&#8217;s crashing.</p>



<p class="wp-block-paragraph">Hello?</p>



<p class="wp-block-paragraph">What happened?</p>



<p class="wp-block-paragraph">There we go.</p>



<p class="wp-block-paragraph">Okay.</p>



<p class="wp-block-paragraph">So we&#8217;re ready to add the 55.</p>



<p class="wp-block-paragraph">Oh, God.</p>



<p class="wp-block-paragraph">Okay, let me see what&#8217;s going to happen here.</p>



<p class="wp-block-paragraph">This is awful.</p>



<p class="wp-block-paragraph">is awful i usually say you have to space these out enough so that none of these overlap but</p>



<p class="wp-block-paragraph">they&#8217;re about to overlap okay we&#8217;ll do go to the left because 55 is less than 88 go to the right</p>



<p class="wp-block-paragraph">because 55 is greater than 21 go to the left because it&#8217;s less than 72 go to the right because</p>



<p class="wp-block-paragraph">it&#8217;s greater than 34 then go to the left again because it&#8217;s less than 66 i hate this i hate this</p>



<p class="wp-block-paragraph">between 34 and 66, just to try to make it easier to debug.</p>



<p class="wp-block-paragraph">This is almost, I&#8217;m almost stretched</p>



<p class="wp-block-paragraph">to my mental limit right now.</p>



<p class="wp-block-paragraph">So I&#8217;m gonna make the left child pointer here</p>



<p class="wp-block-paragraph">and the new node we just added was 55.</p>



<p class="wp-block-paragraph">Whoops, yeah, 55.</p>



<p class="wp-block-paragraph">Okay, my God.</p>



<p class="wp-block-paragraph">Let me just duplicate this one more time</p>



<p class="wp-block-paragraph">and get rid of those pink arrows.</p>



<p class="wp-block-paragraph">arrows let&#8217;s add the 17 next 17 right here um so once again we look at the root node it&#8217;s occupied</p>



<p class="wp-block-paragraph">go to the left because it&#8217;s less than we look at the 21 we go left because it&#8217;s less than 21</p>



<p class="wp-block-paragraph">we go to the right because it&#8217;s greater than three we look at the six we go to the right</p>



<p class="wp-block-paragraph">because it&#8217;s greater than six we go to the right because it&#8217;s greater than 11.</p>



<p class="wp-block-paragraph">So a super cramped diagram.</p>



<p class="wp-block-paragraph">I&#8217;m in hell.</p>



<p class="wp-block-paragraph">I&#8217;m just going to move this slightly to the right because this is just awful.</p>



<p class="wp-block-paragraph">And I&#8217;m going to try to make sure again that same depth nodes are at the same Y coordinate.</p>



<p class="wp-block-paragraph">Let me fix that number real fast before I forget.</p>



<p class="wp-block-paragraph">And put it as a 17.</p>



<p class="wp-block-paragraph">And then do my connecting line.</p>



<p class="wp-block-paragraph">Like that.</p>



<p class="wp-block-paragraph">Okay.</p>



<p class="wp-block-paragraph">I&#8217;m losing it.</p>



<p class="wp-block-paragraph">The, uh, whoops, the 23, where is this going to go?</p>



<p class="wp-block-paragraph">Is it 23?</p>



<p class="wp-block-paragraph">Um, Hmm.</p>



<p class="wp-block-paragraph">Hmm.</p>



<p class="wp-block-paragraph">Oh, well, it&#8217;s going to be like left child of the 34 probably.</p>



<p class="wp-block-paragraph">Okay.</p>



<p class="wp-block-paragraph">Let me just, uh, look at the root node.</p>



<p class="wp-block-paragraph">Okay.</p>



<p class="wp-block-paragraph">23 belongs on the left of that.</p>



<p class="wp-block-paragraph">Look at the 21, 23 belongs on the right of that.</p>



<p class="wp-block-paragraph">Cause it&#8217;s greater than 21.</p>



<p class="wp-block-paragraph">Look at the 72.</p>



<p class="wp-block-paragraph">It belongs on the left.</p>



<p class="wp-block-paragraph">it belongs on the left look at the 34 belongs on the left and then that&#8217;s going to be the new left</p>



<p class="wp-block-paragraph">child okay so I&#8217;m going to duplicate one of these nodes and it&#8217;s going to be the new left child of</p>



<p class="wp-block-paragraph">the 34 node that is awful but I guess we barely have enough room let me change that to a 23 and</p>



<p class="wp-block-paragraph">then I&#8217;ll add my connecting line okay and now we&#8217;re ready to add the final value in our tree</p>



<p class="wp-block-paragraph">to be? It&#8217;s going to be like left child of 11 maybe. So we look at the root node. Whoops,</p>



<p class="wp-block-paragraph">forgot to move that arrow. We look at the root node. We can&#8217;t put it there. Nine belongs on the</p>



<p class="wp-block-paragraph">left side of the root. So we go like that. Nine belongs on the left side of the 21. Oh, did I just</p>



<p class="wp-block-paragraph">guess something wrong? No, no, no. I think I&#8217;m okay. Go to the left side of that. We look at</p>



<p class="wp-block-paragraph">right side of three we look at the six nine belongs on the right side of the six we look at</p>



<p class="wp-block-paragraph">the eleven nine belongs on the left side of eleven because it&#8217;s less than eleven so I&#8217;m just going to</p>



<p class="wp-block-paragraph">duplicate this and it&#8217;s going to end up being the left side whoops nope that&#8217;s wrong hang on a second</p>



<p class="wp-block-paragraph">let me oh come on man let me get this down it&#8217;s going to be the left child of eleven not the left</p>



<p class="wp-block-paragraph">there and the diagram is a little messed up maybe I should try to rearrange this in a second</p>



<p class="wp-block-paragraph">it the topology is correct but it&#8217;s harder to debug because you can see that one of the right</p>



<p class="wp-block-paragraph">descendants of the six node is actually physically on its left side and that just makes it extra hard</p>



<p class="wp-block-paragraph">to debug but for now we&#8217;ll say that we&#8217;re done adding stuff into the tree so maybe I can kind</p>



<p class="wp-block-paragraph">I&#8217;m not going to change the actual topology.</p>



<p class="wp-block-paragraph">I&#8217;m just going to like, you know, redraw this in a slightly nicer way.</p>



<p class="wp-block-paragraph">So I can probably take this whole subtree and move it over to the left a little bit to make it a little cleaner.</p>



<p class="wp-block-paragraph">Which will give me some room to move this subtree a little bit over to the right.</p>



<p class="wp-block-paragraph">Am I still wearing my microphone? Yeah.</p>



<p class="wp-block-paragraph">And then it&#8217;s a little bit cleaner.</p>



<p class="wp-block-paragraph">Then I just have to redraw this line.</p>



<p class="wp-block-paragraph">Whoops.</p>



<p class="wp-block-paragraph">oops yeah just have to redraw this line and now i think we&#8217;re following the rules that i talked</p>



<p class="wp-block-paragraph">about before where a good diagram has all the left descendants physically on the left side of</p>



<p class="wp-block-paragraph">a given node so let&#8217;s see the six has everything on the right and everything i think we&#8217;re okay</p>



<p class="wp-block-paragraph">i&#8217;m going to duplicate this real fast and now let&#8217;s verify that our tree is actually correct</p>



<p class="wp-block-paragraph">So I said this in the last video when we built a tree, but you basically want to take like the input data set here and sort it.</p>



<p class="wp-block-paragraph">And whatever sorted list you end up with, that&#8217;s what you should see when you scan your eyes from left to right.</p>



<p class="wp-block-paragraph">Again, this is another good argument for drawing the diagram in a really good way.</p>



<p class="wp-block-paragraph">All left descendants are physically on the left. All right descendants are physically on the right.</p>



<p class="wp-block-paragraph">So another way that I could do this, besides I don&#8217;t really want to sort this list right now,</p>



<p class="wp-block-paragraph">Just scan from left to right and make sure that I see increasing numbers</p>



<p class="wp-block-paragraph">Or if you&#8217;ve decided to make a tree that supports duplicates, make sure that you see non-decreasing numbers</p>



<p class="wp-block-paragraph">But I&#8217;m looking for an ascending list</p>



<p class="wp-block-paragraph">Okay, so I&#8217;m gonna just like do little hashes here</p>



<p class="wp-block-paragraph">One is the lowest number. That&#8217;s good. Then if I go to the right just a little bit</p>



<p class="wp-block-paragraph">I see a three go to the right a little bit. I see a six that&#8217;s still increasing then I see a nine and then I see an 11</p>



<p class="wp-block-paragraph">still been increasing go to the right a little bit more it&#8217;s a 21 go to the right a little bit more</p>



<p class="wp-block-paragraph">it&#8217;s a 23 then it&#8217;s a 34 then it&#8217;s a 55 then it&#8217;s a 66 then it&#8217;s a 72 so far everything&#8217;s been</p>



<p class="wp-block-paragraph">increasing and then from 72 to 88 and from 88 to 90. so the ordering of the numbers are correct</p>



<p class="wp-block-paragraph">let me just make sure i actually have a binary search tree by the definition of a bst first it</p>



<p class="wp-block-paragraph">crazy lines going off in some direction or like different symbols this is a</p>



<p class="wp-block-paragraph">connected graph meaning I could probably find well I definitely could find a path</p>



<p class="wp-block-paragraph">from any node to any other node if I just you know trace the edges so can the</p>



<p class="wp-block-paragraph">9 find its way to the 90 yeah if we just kind of like go you know up this way and</p>



<p class="wp-block-paragraph">follow the edges up to the 88 and then back down to the 90 so every single node</p>



<p class="wp-block-paragraph">could do that it could find every single other node on the graph which means this</p>



<p class="wp-block-paragraph">every single other node on the graph which means this is a connected graph so that&#8217;s good the next</p>



<p class="wp-block-paragraph">thing is now that we have a connected graph do we have a tree so check for cycles uh can any start</p>



<p class="wp-block-paragraph">node find its way back to itself in a path that does not repeat edges i don&#8217;t see that anywhere</p>



<p class="wp-block-paragraph">in the tree so i think we have a valid tree let me get rid of that real fast so for example uh</p>



<p class="wp-block-paragraph">Could we find a path that goes away from the 9 node and then comes back without repeating any edges?</p>



<p class="wp-block-paragraph">I cannot because as soon as we go out to the 11,</p>



<p class="wp-block-paragraph">later on we would have to use that same edge to come back down to the 9 and that would be repeating an edge.</p>



<p class="wp-block-paragraph">So we just kind of check that for every single node.</p>



<p class="wp-block-paragraph">We can&#8217;t find a cycle anywhere in this entire graph.</p>



<p class="wp-block-paragraph">So this is an acyclic graph.</p>



<p class="wp-block-paragraph">Okay, that means it&#8217;s a tree.</p>



<p class="wp-block-paragraph">Is this a rooted tree?</p>



<p class="wp-block-paragraph">ancestor to all other nodes and it&#8217;s that 88 node that&#8217;s the root node of the</p>



<p class="wp-block-paragraph">entire tree every single node in the tree can say that 88 is its greatest</p>



<p class="wp-block-paragraph">ancestor there&#8217;s no you know same leveled nodes at the very very very top okay so</p>



<p class="wp-block-paragraph">this is a rooted tree now is it a binary tree yeah we look at every single node</p>



<p class="wp-block-paragraph">and we can see that none of the nodes have more than two children they&#8217;ve all</p>



<p class="wp-block-paragraph">this is a binary tree. And then when we, you know, we verified the numbers a second ago,</p>



<p class="wp-block-paragraph">that means this is a binary search tree. So it satisfies all the properties of a binary search</p>



<p class="wp-block-paragraph">tree. It doesn&#8217;t look very good. It&#8217;s kind of wonky, but it is valid. Remember this,</p>



<p class="wp-block-paragraph">you know, a binary search tree just by itself is not a self-balancing tree,</p>



<p class="wp-block-paragraph">which means you, you, you need to like not inject your human feelings into the tree while you&#8217;re</p>



<p class="wp-block-paragraph">building it and start rearranging it to make it prettier. It wouldn&#8217;t be a valid binary search</p>



<p class="wp-block-paragraph">if you tried to add special rules when you were creating it.</p>



<p class="wp-block-paragraph">I don&#8217;t know.</p>



<p class="wp-block-paragraph">If you imagine that maybe you, the human,</p>



<p class="wp-block-paragraph">were changing the input data,</p>



<p class="wp-block-paragraph">then I guess that&#8217;s valid.</p>



<p class="wp-block-paragraph">But don&#8217;t imagine that the tree</p>



<p class="wp-block-paragraph">is changing the data as you add it.</p>



<p class="wp-block-paragraph">Anyway, so how fast is this tree?</p>



<p class="wp-block-paragraph">Remember we said in a previous video</p>



<p class="wp-block-paragraph">that a perfect binary search tree,</p>



<p class="wp-block-paragraph">meaning perfectly balanced on every single node,</p>



<p class="wp-block-paragraph">would be a log time tree.</p>



<p class="wp-block-paragraph">It would be really, really fast to add and search</p>



<p class="wp-block-paragraph">to add and search and even remove but this tree is definitely lopsided so this</p>



<p class="wp-block-paragraph">is not a log tree the time complexity of a binary search tree actually is not</p>



<p class="wp-block-paragraph">really log because the tree could just grow in any direction so in the worst</p>



<p class="wp-block-paragraph">case scenario if you add the worst possible data you&#8217;d end up with a linear</p>



<p class="wp-block-paragraph">time tree self balancing trees will be log time trees because they always</p>



<p class="wp-block-paragraph">rearrange themselves to make sure that they&#8217;re balanced to a certain extent but</p>



<p class="wp-block-paragraph">But, you know, as a binary search tree scales, it could just get slower and slower and slower.</p>



<p class="wp-block-paragraph">So we wouldn&#8217;t be able to say that BSTs, binary search trees in general are log time.</p>



<p class="wp-block-paragraph">We could pull up a calculator though and we could say, well, you know, what&#8217;s the height of this particular tree?</p>



<p class="wp-block-paragraph">Let me just look at the depths real fast here.</p>



<p class="wp-block-paragraph">What&#8217;s the height of this tree?</p>



<p class="wp-block-paragraph">So the root node has a depth of zero and then one and then two and then three and then four.</p>



<p class="wp-block-paragraph">drawing your tree in a nice pretty way where all the ranks are the same physically.</p>



<p class="wp-block-paragraph">We just take the deepest node and we add one to it and we say that&#8217;s the height.</p>



<p class="wp-block-paragraph">So the height of this tree is six.</p>



<p class="wp-block-paragraph">Another way of looking at it is if we wanted to touch one of the deepest nodes,</p>



<p class="wp-block-paragraph">how many nodes would we have to touch as we travel down through the tree?</p>



<p class="wp-block-paragraph">So how many nodes would we have to touch to find, you know, the nine or the 17 or the 55?</p>



<p class="wp-block-paragraph">one node the 88 two and let&#8217;s go to the left three four five six we&#8217;d have to touch six nodes</p>



<p class="wp-block-paragraph">to get to the deepest node so that&#8217;s why we&#8217;re saying that&#8217;s another way that we&#8217;re justifying</p>



<p class="wp-block-paragraph">that we say the height is six so the height of this tree is six which means in the worst case</p>



<p class="wp-block-paragraph">scenario if we needed to search this tree again we&#8217;ll talk about actually searching in another</p>



<p class="wp-block-paragraph">video but for now i can just promise you that if we were going to search this tree we could do it</p>



<p class="wp-block-paragraph">going to search this tree we could do it in at most six uh examinations so even though we have</p>



<p class="wp-block-paragraph">a lot of nodes here how many nodes do we actually have let me just double check this we have n</p>



<p class="wp-block-paragraph">is equal to one two three four five six seven eight nine ten eleven twelve thirteen fourteen</p>



<p class="wp-block-paragraph">we have fourteen nodes but at most we&#8217;d have to examine six nodes because this is a binary search</p>



<p class="wp-block-paragraph">tree so it&#8217;s a lot faster than scanning the whole tree in linear time but it could be a lot faster</p>



<p class="wp-block-paragraph">It could be a lot faster if the tree was better balanced.</p>



<p class="wp-block-paragraph">That&#8217;s a topic for another day.</p>



<p class="wp-block-paragraph">So for example, if we wanted to search for the number 55, let&#8217;s say we were just going</p>



<p class="wp-block-paragraph">to search for 55, you know, we&#8217;d look at the 88.</p>



<p class="wp-block-paragraph">Basically searching is pretty much the same as adding a node.</p>



<p class="wp-block-paragraph">You just kind of go find where the node would belong.</p>



<p class="wp-block-paragraph">And then if it&#8217;s there, then you found it.</p>



<p class="wp-block-paragraph">And if not, then it&#8217;s not in there.</p>



<p class="wp-block-paragraph">55 belongs on the left of 88, belongs on the right of 21, it belongs on the left of 72.</p>



<p class="wp-block-paragraph">belongs on the left of 72, belongs on the right of 34, belongs on the left of 66, and there we</p>



<p class="wp-block-paragraph">found it. Notice how we only did one, two, three, four, five, six examinations. So I&#8217;m going to talk</p>



<p class="wp-block-paragraph">about big O and time complexities in another video, but long story short, the time complexity</p>



<p class="wp-block-paragraph">of this particular tree, or actually any binary search tree, is always going to be O of H, no</p>



<p class="wp-block-paragraph">imbalanced or perfectly balanced O of H so in the worst case scenario since H is 6 we&#8217;re going to have to touch H or 6 nodes</p>



<p class="wp-block-paragraph">To search or add something or whatever if the tree was perfect. It would look more like log time. Let&#8217;s pull up that calculator real fast</p>



<p class="wp-block-paragraph">Where the heck is my calculator? I think I like got sidetracked</p>



<p class="wp-block-paragraph">so if I pull up a calculator here</p>



<p class="wp-block-paragraph">and I typed in</p>



<p class="wp-block-paragraph">log base 2 it&#8217;s base 2 because we only allow two children per node at most log</p>



<p class="wp-block-paragraph">base 2 of the number of nodes in the tree so log base 2 of 14 if we get the</p>



<p class="wp-block-paragraph">answer to that it says 3.8 which means the calculator is telling us that in a</p>



<p class="wp-block-paragraph">log time tree we should not have to examine more than four nodes in order to</p>



<p class="wp-block-paragraph">search the tree or add a brand new node but this is not a log tree because it is</p>



<p class="wp-block-paragraph">totally imbalanced it&#8217;s kind of wonky it&#8217;s not it&#8217;s not perfect so it&#8217;s telling us in a perfect</p>



<p class="wp-block-paragraph">tree we&#8217;d have to touch four nodes only but we clearly know we might have to touch six nodes in</p>



<p class="wp-block-paragraph">the worst case so that i&#8217;m just trying to bring to your attention that the more imbalanced the tree is</p>



<p class="wp-block-paragraph">the further its uh performance drifts away from log time which is a great argument</p>



<p class="wp-block-paragraph">I think this is pretty much everything I wanted to talk about today.</p>



<p class="wp-block-paragraph">I&#8217;m going to take a break and like, you know, eat some cookies and stuff.</p>



<p class="wp-block-paragraph">But in a future video, we&#8217;re going to talk about inserting.</p>



<p class="wp-block-paragraph">No, we already just did that literally right now.</p>



<p class="wp-block-paragraph">We&#8217;re going to talk about searching through the tree.</p>



<p class="wp-block-paragraph">We&#8217;re going to talk about removing nodes from the tree.</p>



<p class="wp-block-paragraph">We&#8217;re going to talk about linear trees.</p>



<p class="wp-block-paragraph">We&#8217;re going to talk about all the time complexities.</p>



<p class="wp-block-paragraph">And then eventually we&#8217;ll move on to self-balancing trees.</p>



<p class="wp-block-paragraph">on to self-balancing trees. So I hope you had fun watching this video. I hope you learned a little</p>



<p class="wp-block-paragraph">bit of stuff and I&#8217;ll see you at a later date in time. I&#8217;m outie. Patowdy. Note to self, edit out</p>



<p class="wp-block-paragraph">Patowdy. Hey everybody, thanks for watching this video again from the bottom of my heart. I really</p>



<p class="wp-block-paragraph">hope you did learn something and have some fun if you could do me a please a small little favor</p>



<p class="wp-block-paragraph">could you please subscribe and follow this channel or these videos or whatever it is you do on the</p>



<p class="wp-block-paragraph">current social media website that you&#8217;re looking at right now it would really mean the world to me</p>



<p class="wp-block-paragraph">and it&#8217;ll help make more videos and grow this community so we&#8217;ll be able to do more videos</p>



<p class="wp-block-paragraph">longer videos better videos or just i&#8217;ll be able to keep making videos in general so please</p>



<p class="wp-block-paragraph">and subscribe. You know, sometimes I&#8217;m sleeping in the middle of the night and I just wake up</p>



<p class="wp-block-paragraph">because I know somebody subscribed or followed. It just wakes me up and I get filled with joy.</p>



<p class="wp-block-paragraph">That&#8217;s exactly what happens every single time. So you could do it as a nice favor to me or you</p>



<p class="wp-block-paragraph">could, you could troll me if you want to just wake me up in the middle of the night, just subscribe</p>



<p class="wp-block-paragraph">and then I&#8217;ll, I&#8217;ll just wake up. I promise that&#8217;s what will happen. Also, uh, if you look at the</p>



<p class="wp-block-paragraph">middle of the screen right now, you should see a QR code, which you can scan in order to go to the</p>



<p class="wp-block-paragraph">we&#8217;re at the bottom of this video and it&#8217;ll take you to my main website where you can just kind of</p>



<p class="wp-block-paragraph">like see all the videos i published and the services and tutorials and things that i offer</p>



<p class="wp-block-paragraph">and all that good stuff and uh if you have a suggestion for uh uh clarifications or errata</p>



<p class="wp-block-paragraph">or just future videos that you want to see please leave a comment or if you just want to say hey</p>



<p class="wp-block-paragraph">what&#8217;s up what&#8217;s going on you know just send me a comment whatever i also wake up for those in the</p>



<p class="wp-block-paragraph">wake up in a cold sweat and i&#8217;m like it would really it really mean the world to me i would</p>



<p class="wp-block-paragraph">really appreciate it so again thank you so much for watching this video and um enjoy the cool music</p>



<p class="wp-block-paragraph">as as i fade into the darkness which is coming for us all</p>



<p class="wp-block-paragraph">Thank you.</p>
<p>The post <a href="https://www.NeuralLantern.com/binary-search-tree-insertion-tutorial-building-a-bst-from-scratch-step-by-step/">Binary Search Tree Insertion Tutorial: Building a BST from Scratch Step by Step</a> appeared first on <a href="https://www.NeuralLantern.com">NeuralLantern.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.NeuralLantern.com/binary-search-tree-insertion-tutorial-building-a-bst-from-scratch-step-by-step/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>BST Terminology: Root, Leaves, Subtrees, Depth, Height, Ancestors &#038; More</title>
		<link>https://www.NeuralLantern.com/bst-terminology-root-leaves-subtrees-depth-height-ancestors-more/</link>
					<comments>https://www.NeuralLantern.com/bst-terminology-root-leaves-subtrees-depth-height-ancestors-more/#respond</comments>
		
		<dc:creator><![CDATA[mike]]></dc:creator>
		<pubDate>Mon, 06 Apr 2026 09:25:41 +0000</pubDate>
				<category><![CDATA[Binary Search Trees]]></category>
		<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Data Structures]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[binary search tree]]></category>
		<category><![CDATA[binary search tree basics]]></category>
		<category><![CDATA[binary search tree explained]]></category>
		<category><![CDATA[binary tree terminology]]></category>
		<category><![CDATA[BST ancestors]]></category>
		<category><![CDATA[BST descendants]]></category>
		<category><![CDATA[bst for beginners]]></category>
		<category><![CDATA[BST internal nodes]]></category>
		<category><![CDATA[BST leaf nodes]]></category>
		<category><![CDATA[BST root node]]></category>
		<category><![CDATA[BST subtrees]]></category>
		<category><![CDATA[BST terminology]]></category>
		<category><![CDATA[coding interview prep]]></category>
		<category><![CDATA[computer science trees]]></category>
		<category><![CDATA[data structures tutorial]]></category>
		<category><![CDATA[left subtree]]></category>
		<category><![CDATA[right subtree]]></category>
		<category><![CDATA[tree depth]]></category>
		<category><![CDATA[tree height]]></category>
		<guid isPermaLink="false">https://www.NeuralLantern.com/?p=327</guid>

					<description><![CDATA[<p>This video explains essential binary search tree terminology including root node, internal nodes, external nodes (leaves), left and right subtrees, depth of a node, height of the tree and subtrees, ancestors, descendants, siblings, parent and child relationships using a clear example tree.</p>
<p>The post <a href="https://www.NeuralLantern.com/bst-terminology-root-leaves-subtrees-depth-height-ancestors-more/">BST Terminology: Root, Leaves, Subtrees, Depth, Height, Ancestors &amp; More</a> appeared first on <a href="https://www.NeuralLantern.com">NeuralLantern.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="BST Terminology: Root, Leaves, Subtrees, Depth, Height, Ancestors &amp; More" width="1380" height="776" src="https://www.youtube.com/embed/4iuhXHw26ec?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>



<p class="wp-block-paragraph">Quick but thorough run-through of binary search tree terminology: root, leaves, internal nodes, subtrees, depth, height, ancestors, descendants, siblings, left/right child &#8211; everything clearly labeled on a working example.</p>



<p class="wp-block-paragraph">Great for beginners, interview prep, or reviewing foundational BST concepts before coding insert/search/delete.</p>



<p class="wp-block-paragraph">00:00 Introduction to BST Terminology<br>00:28 Root Node<br>01:10 Ancestors and Descendants<br>01:58 Children, Grandchildren, and Siblings<br>04:07 Internal Nodes vs External Nodes (Leaves)<br>05:34 Understanding Subtrees<br>06:09 Left Subtree and Right Subtree Examples<br>08:34 Depth of a Node<br>11:02 Height of the Tree<br>12:48 Height of Subtrees<br>17:32 Node Structure and Pointers Overview<br>18:12 Closing Remarks and Call to Action</p>



<p class="wp-block-paragraph">=-=-=-=-=-=-=-=-=</p>



<p class="wp-block-paragraph">Thanks for watching!</p>



<p class="wp-block-paragraph">Find us on other social media here:</p>



<ul class="wp-block-list">
<li>https://www.NeuralLantern.com/social</li>



<li>Twitter / X: https://x.com/NeuralLantern</li>



<li>Rumble: https://rumble.com/c/c-3696939</li>



<li>BitChute: https://www.bitchute.com/channel/pg1Pvv5dN4Gt</li>



<li>Daily Motion: https://www.dailymotion.com/neurallantern</li>



<li>Minds: https://www.minds.com/neurallantern/</li>



<li>Odysee: https://odysee.com/@NeuralLantern:5</li>
</ul>



<p class="wp-block-paragraph">Please show your support!</p>



<ul class="wp-block-list">
<li>Buy me a coffee: https://ko-fi.com/neurallantern</li>



<li>Subscribe + Sharing on Social Media</li>



<li>Leave a comment or suggestion</li>



<li>Subscribe to the Blog: https://www.NeuralLantern.com</li>



<li>Watch the main &#8220;pinned&#8221; video of this channel for offers and extras</li>
</ul>



<p class="wp-block-paragraph">Hello there! Let&#8217;s talk about binary search tree terminology. If you saw my</p>



<p class="wp-block-paragraph">previous video we talked about how to define a binary search tree meaning a</p>



<p class="wp-block-paragraph">whole bunch of rules so that if the thing you&#8217;re looking at follows all the</p>



<p class="wp-block-paragraph">rules then you know you&#8217;re actually looking at a binary search tree if not</p>



<p class="wp-block-paragraph">then not. So see my previous video if you want to know for sure whether you&#8217;re</p>



<p class="wp-block-paragraph">looking at a binary search tree. For now we&#8217;re just going to talk about some</p>



<p class="wp-block-paragraph">Okay, so the first thing we should probably obviously talk about is the root node over here.</p>



<p class="wp-block-paragraph">So I mean, well, in my previous video, we talked about nodes, right?</p>



<p class="wp-block-paragraph">So this is kind of a graph with a whole bunch of rules on top of it.</p>



<p class="wp-block-paragraph">That means we have nodes and edges.</p>



<p class="wp-block-paragraph">So if you look at the very top node here, sometimes also referred to as a vertex,</p>



<p class="wp-block-paragraph">I think in binary search tree terminology, we usually say nodes.</p>



<p class="wp-block-paragraph">We usually say nodes. I can&#8217;t actually remember. But so look at the 42 there</p>



<p class="wp-block-paragraph">That node is the root node of all other nodes. It&#8217;s the highest common ancestor in the entire tree. So this is the root node</p>



<p class="wp-block-paragraph">First bit of terminology. Also, I tried to sneak past you ancestor</p>



<p class="wp-block-paragraph">So these trees are supposed to be written in a way that kind of looks like they have a family hierarchy with one parent per</p>



<p class="wp-block-paragraph">like not two children per parent, but just like one parent and then either zero or one or two</p>



<p class="wp-block-paragraph">children. So we&#8217;ll say that ancestors are higher on the tree. So that means 42 is actually an</p>



<p class="wp-block-paragraph">ancestor of 33. And it&#8217;s also an ancestor of 12. It&#8217;s also an ancestor of 19. Just anything that&#8217;s</p>



<p class="wp-block-paragraph">higher is an ancestor of anything that&#8217;s lower. We could also say that 33 is an ancestor of 39</p>



<p class="wp-block-paragraph">and 19 and so forth. You can probably also imagine that we have children and grandchildren. Yeah,</p>



<p class="wp-block-paragraph">we do go that far in binary search trees. So the 42 node, it has two children. It has a left child</p>



<p class="wp-block-paragraph">and a right child. The 33 is the left child. I&#8217;ll put LC for left child. And the 67 is its right</p>



<p class="wp-block-paragraph">child. I&#8217;ll put an RC there. The 67 in turn has two children. The 56 has no children of its own.</p>



<p class="wp-block-paragraph">the 33 has two children the 12 only has one child it was you know playing it safe i guess</p>



<p class="wp-block-paragraph">you never know if these children are going to come out and just like run amok</p>



<p class="wp-block-paragraph">and and engage in constant shenanigans so the 12 has a right child but no left child that&#8217;s okay</p>



<p class="wp-block-paragraph">um in terms of going higher on the tree anything that is higher is an ancestor sorry i should have</p>



<p class="wp-block-paragraph">said lower anything that&#8217;s higher is an ancestor anything that&#8217;s lower is a descendant so if we&#8217;re</p>



<p class="wp-block-paragraph">If we&#8217;re looking at the 33 node, the 33 is a descendant of 42 because it&#8217;s the left child of 42.</p>



<p class="wp-block-paragraph">It&#8217;s also an ancestor of anything that comes below it.</p>



<p class="wp-block-paragraph">So it&#8217;s an ancestor of 12 and 39 and 19, right?</p>



<p class="wp-block-paragraph">So if we&#8217;re looking at 33, we&#8217;ve got a left child over here and we&#8217;ve got a right child over here.</p>



<p class="wp-block-paragraph">And then we have a grandchild, which is the 19 node.</p>



<p class="wp-block-paragraph">We don&#8217;t really have left and right grandchildren.</p>



<p class="wp-block-paragraph">You could say a grandchild in the left subtree or the right subtree.</p>



<p class="wp-block-paragraph">subtree talk about sub trees in a second the 33 has a parent node which is just the 42 node</p>



<p class="wp-block-paragraph">which is also the root node of course it&#8217;s got a sibling the 67 is the sibling you can tell</p>



<p class="wp-block-paragraph">something&#8217;s a sibling because it&#8217;s got the same parent as you it&#8217;s the people that you&#8217;re usually</p>



<p class="wp-block-paragraph">fighting with right anyway so if we&#8217;re looking at any node in particular it might have a whole bunch</p>



<p class="wp-block-paragraph">of ancestors above the tree it might have a whole bunch of descendants below the tree</p>



<p class="wp-block-paragraph">It has siblings or it usually has zero or one sibling because in a binary search tree,</p>



<p class="wp-block-paragraph">we can only have up to two children per node.</p>



<p class="wp-block-paragraph">It&#8217;s got sometimes, you know, grandparents and great grandparents and children and great</p>



<p class="wp-block-paragraph">grandchildren.</p>



<p class="wp-block-paragraph">So just think about the hierarchy like a family tree would have.</p>



<p class="wp-block-paragraph">Okay, moving on to some more terminology.</p>



<p class="wp-block-paragraph">Next thing is we have internal nodes and also external nodes.</p>



<p class="wp-block-paragraph">So what do I mean by internal? Internal means a node has more than zero children. It has one or two children.</p>



<p class="wp-block-paragraph">So I&#8217;m going to put internal on the 33 because the 33 node has children.</p>



<p class="wp-block-paragraph">The 12 also has children, so it&#8217;s internal. The 39 does not have children, so it&#8217;s not internal.</p>



<p class="wp-block-paragraph">67 has children, so it&#8217;s internal. And the root node, 42, also has children, so it&#8217;s considered internal.</p>



<p class="wp-block-paragraph">That 42 has a lot of different names.</p>



<p class="wp-block-paragraph">It&#8217;s the root node, it&#8217;s the greatest common ancestor,</p>



<p class="wp-block-paragraph">it&#8217;s an internal node and so forth.</p>



<p class="wp-block-paragraph">Notice how the other nodes that I have not highlighted,</p>



<p class="wp-block-paragraph">they have zero children.</p>



<p class="wp-block-paragraph">So when a node has zero children,</p>



<p class="wp-block-paragraph">it&#8217;s known as an external node.</p>



<p class="wp-block-paragraph">It&#8217;s also known as a leaf</p>



<p class="wp-block-paragraph">because we&#8217;re talking about trees</p>



<p class="wp-block-paragraph">and I guess it&#8217;s kind of like a nice synonym.</p>



<p class="wp-block-paragraph">So the 19, the node with no children of its own is a leaf.</p>



<p class="wp-block-paragraph">So is the 39.</p>



<p class="wp-block-paragraph">So is the 56.</p>



<p class="wp-block-paragraph">So is the 76.</p>



<p class="wp-block-paragraph">I just want to point out also, if you were with me on my last video,</p>



<p class="wp-block-paragraph">then the numbers need to be ordered from left to right.</p>



<p class="wp-block-paragraph">But don&#8217;t worry, we&#8217;re going to do another video where we build a complete tree from scratch.</p>



<p class="wp-block-paragraph">There&#8217;s some more terminology we should talk about.</p>



<p class="wp-block-paragraph">So I&#8217;m going to get rid of all these externals and internals real fast.</p>



<p class="wp-block-paragraph">Or the labels.</p>



<p class="wp-block-paragraph">We should talk about the left subtree versus the right subtree.</p>



<p class="wp-block-paragraph">left subtree versus the right subtree i mean what is a subtree anyway the subtree is basically</p>



<p class="wp-block-paragraph">a subtree is basically just pick any node you want in the entire tree let&#8217;s pick</p>



<p class="wp-block-paragraph">the 76 and then we&#8217;ll just pretend that it&#8217;s the root node of a separate tree starting with 76 so</p>



<p class="wp-block-paragraph">if there was anything below it then all those nodes would be included so this 76 right here it</p>



<p class="wp-block-paragraph">really has nothing underneath it it&#8217;s a leaf which means well it can be the root node of its own</p>



<p class="wp-block-paragraph">the subtree is just going to be a tree of one node.</p>



<p class="wp-block-paragraph">So kind of boring, right?</p>



<p class="wp-block-paragraph">You&#8217;re boring.</p>



<p class="wp-block-paragraph">If instead we decided to look at the 33,</p>



<p class="wp-block-paragraph">which is a little bit more interesting,</p>



<p class="wp-block-paragraph">and we called the 33 the root node of its own subtree,</p>



<p class="wp-block-paragraph">then really what we&#8217;re saying is all these nodes here</p>



<p class="wp-block-paragraph">are included in that subtree.</p>



<p class="wp-block-paragraph">So if I told you, give me the subtree starting with node 33,</p>



<p class="wp-block-paragraph">then you would say, oh, it&#8217;s 33, 12, 39, 19.</p>



<p class="wp-block-paragraph">descendants of the subtree root node that we picked out. So subtree just means, you know,</p>



<p class="wp-block-paragraph">like a little fragment or a portion of the original tree. You could also say that the</p>



<p class="wp-block-paragraph">entire tree is a subtree of itself. If you chose the subtree root to be the real root node, I mean,</p>



<p class="wp-block-paragraph">that&#8217;s not super useful, but you can do it. Anyway, so if we decide to say that the 67 is the root of</p>



<p class="wp-block-paragraph">with 67 and below in terms of descendancy is going to be considered part of the subtree.</p>



<p class="wp-block-paragraph">I&#8217;ve highlighted the left subtree and the right subtree of the root node because that&#8217;s usually</p>



<p class="wp-block-paragraph">what we say. We&#8217;ll say this is the left subtree over here and then over here we&#8217;re going to say</p>



<p class="wp-block-paragraph">this is the right subtree. Meaning if you look at any node at all, if it has a left child,</p>



<p class="wp-block-paragraph">then that left child is the root node of the left subtree of the node in question. Same thing for</p>



<p class="wp-block-paragraph">same thing for the right so if I say all right let me duplicate this real fast</p>



<p class="wp-block-paragraph">let me get rid of actually this real fast too if I say okay give me the left subtree of the 33 node</p>



<p class="wp-block-paragraph">well then you would know to include the 12 and the 19 because the left subtree of the 30 node</p>



<p class="wp-block-paragraph">has to the 33 node has to start with the left child of the 33 node which would be the 12 and</p>



<p class="wp-block-paragraph">And we&#8217;ll just say, okay, the 12 is now the root node of its own subtree.</p>



<p class="wp-block-paragraph">And then anything that goes below it in descendancy is going to be considered part of that subtree.</p>



<p class="wp-block-paragraph">So that highlighted subtree is the left subtree of the 33 node.</p>



<p class="wp-block-paragraph">The 39 is the right subtree of the 33 node.</p>



<p class="wp-block-paragraph">I think I just did the wrong color.</p>



<p class="wp-block-paragraph">Let me do that in gray.</p>



<p class="wp-block-paragraph">Right, so we can do left subtree and right subtree for any node in the entire tree.</p>



<p class="wp-block-paragraph">if a node has no children, then there are no subtrees, but we can still look and check.</p>



<p class="wp-block-paragraph">And if there are children, then we&#8217;ve got subtrees or left and right subtrees.</p>



<p class="wp-block-paragraph">Okay, so now that we&#8217;re done talking about subtrees real fast, let&#8217;s talk about the depth of a node.</p>



<p class="wp-block-paragraph">So for me, I like to say that the depth of the root node is zero.</p>



<p class="wp-block-paragraph">And so I&#8217;ll just, I guess we could start off by putting a zero on the 42 indicating it has zero depth.</p>



<p class="wp-block-paragraph">It has zero depth.</p>



<p class="wp-block-paragraph">Imagine maybe it&#8217;s a buoy in the water and it&#8217;s just like sitting, floating like directly</p>



<p class="wp-block-paragraph">on the water.</p>



<p class="wp-block-paragraph">So it has no depth.</p>



<p class="wp-block-paragraph">It&#8217;s just like kind of on the surface.</p>



<p class="wp-block-paragraph">But if you draw your binary search trees in this nice pretty way where every single time</p>



<p class="wp-block-paragraph">you go down a generation from parent to child, from parent to child, you maintain, I guess,</p>



<p class="wp-block-paragraph">like the same Y coordinate for same leveled nodes, then it&#8217;s really easy to calculate</p>



<p class="wp-block-paragraph">the depth of every single node.</p>



<p class="wp-block-paragraph">of every single note let me show you what show you what i mean real fast you saw my video uh</p>



<p class="wp-block-paragraph">previously then you already know this but the 42 it&#8217;s got two children so if i go down to get one</p>



<p class="wp-block-paragraph">of its children i&#8217;m going down to the 33 and then i&#8217;m going down to the 67 right since those two</p>



<p class="wp-block-paragraph">children are on the same i guess level as if we were looking at a family tree they should be</p>



<p class="wp-block-paragraph">physically on the same level they should be on the same y coordinate or the same horizontal plane</p>



<p class="wp-block-paragraph">plane if we go down one more level which means any child of 33 or any child of 67 then those all</p>



<p class="wp-block-paragraph">should be lined up also so notice how these are all lined up on the same y coordinate then if we</p>



<p class="wp-block-paragraph">go down another level then this 19 here is just kind of by itself because the tree is not very big</p>



<p class="wp-block-paragraph">so if we draw the tree like this which is a really smart way because uh it&#8217;s easier to debug</p>



<p class="wp-block-paragraph">whether it&#8217;s a valid binary search tree and all sorts of other things,</p>



<p class="wp-block-paragraph">then we can easily write down the depth kind of on the side of the graph.</p>



<p class="wp-block-paragraph">We can say, all right, here&#8217;s depth zero, and here&#8217;s depth one,</p>



<p class="wp-block-paragraph">and here&#8217;s depth two, and here&#8217;s depth three.</p>



<p class="wp-block-paragraph">Just every time you go down one level, you just increase the depth.</p>



<p class="wp-block-paragraph">And now you know the depths of all the nodes in the entire tree pretty quickly.</p>



<p class="wp-block-paragraph">The 19, I&#8217;m just going to maybe do this in red.</p>



<p class="wp-block-paragraph">the 56 and the 76 have a depth of 2, the 33 has a depth of 1, and the 42 has a depth of 0.</p>



<p class="wp-block-paragraph">So all these trees, sorry, all these nodes in the tree have their own depth,</p>



<p class="wp-block-paragraph">which are very easy to calculate if you draw the tree well. The next thing after depth is the height</p>



<p class="wp-block-paragraph">of the tree. So what is the height of the tree? Well, that&#8217;s basically the depth of the deepest</p>



<p class="wp-block-paragraph">to the very deepest node what is the minimum number of nodes that you must touch when you</p>



<p class="wp-block-paragraph">start at the root node and then find your way to the deepest possible node in the entire tree so</p>



<p class="wp-block-paragraph">um if you if you notice the 19 node is definitely the deepest node in the entire tree</p>



<p class="wp-block-paragraph">it&#8217;s got a depth of three which means the height of the entire tree is four heights</p>



<p class="wp-block-paragraph">equals four and maybe i&#8217;ll change that to like just black or something okay</p>



<p class="wp-block-paragraph">So, let&#8217;s do it the other way real fast.</p>



<p class="wp-block-paragraph">If we&#8217;re kind of just walking down the tree, let&#8217;s start at the 42 and then we go down</p>



<p class="wp-block-paragraph">to the 33, we&#8217;ve touched two nodes so far.</p>



<p class="wp-block-paragraph">We go down to the 12, we&#8217;ve touched three nodes.</p>



<p class="wp-block-paragraph">We go down to the 19, we&#8217;ve touched four nodes.</p>



<p class="wp-block-paragraph">So the height of the tree is four or the number of nodes that you need to touch as you make</p>



<p class="wp-block-paragraph">your way down towards the deepest node or just a shortcut is the deepest nodes depth</p>



<p class="wp-block-paragraph">plus one.</p>



<p class="wp-block-paragraph">And that&#8217;s the height of the tree.</p>



<p class="wp-block-paragraph">you can also have a height of a left subtree and a height of a right subtree so let me just</p>



<p class="wp-block-paragraph">what&#8217;s going on here i think my thing is crashing hello oh i was definitely crashing i think my cpu</p>



<p class="wp-block-paragraph">is burning right now all right i&#8217;m going to be complaining about my new cpu for a long time</p>



<p class="wp-block-paragraph">i sprung only a few bucks for the best cpu that this motherboard could hold but it&#8217;s an old</p>



<p class="wp-block-paragraph">something percent um i&#8217;m eventually going to have to like build a brand new computer</p>



<p class="wp-block-paragraph">anyway so uh suppose we&#8217;re looking at the 67 node and the question is you know what is the height</p>



<p class="wp-block-paragraph">of the left subtree of the 67 node versus the right subtree of the 67 node well if you recall</p>



<p class="wp-block-paragraph">the left subtree is just all the nodes that are included uh beginning with the root node of the</p>



<p class="wp-block-paragraph">subtree of the 67 node well that&#8217;s just the 56 node totally by itself what&#8217;s the right subtree</p>



<p class="wp-block-paragraph">of the 67 it&#8217;s just that 76 node all by itself what&#8217;s the depth of 56 and 76 they&#8217;re both depth</p>



<p class="wp-block-paragraph">zero if we&#8217;re talking about relative depths per their subtrees that means what is the height of</p>



<p class="wp-block-paragraph">the left subtree and the right subtree they&#8217;re just one because the depth is zero the maximum</p>



<p class="wp-block-paragraph">depth is zero and if we want to get to the deepest node in one of those subtrees we&#8217;re just</p>



<p class="wp-block-paragraph">end up touching the one node that&#8217;s in the in the subtree at all so that means uh</p>



<p class="wp-block-paragraph">uh i don&#8217;t want to write down uh left subtree height right now so left subtree height of 67</p>



<p class="wp-block-paragraph">is one right subtree height of 67 is also one so we can do this with any node we want you know what</p>



<p class="wp-block-paragraph">is the uh what is the situation with the 33 node let&#8217;s do uh the 33 node yeah uh it has a left</p>



<p class="wp-block-paragraph">It has a left subtree height of 2 and you can tell because, well, the left subtree starts with the left child and the left child is going to be the root node of its own subtree.</p>



<p class="wp-block-paragraph">Notice how the maximum depth we can find here is 1, right?</p>



<p class="wp-block-paragraph">Like if we start at depth 0 for the 12, considering like it&#8217;s a relative depth, that means we take the deepest node, which is the 19 node, which has a depth of 1.</p>



<p class="wp-block-paragraph">We add 1 to that.</p>



<p class="wp-block-paragraph">So that means the height of that subtree is 2.</p>



<p class="wp-block-paragraph">if you wanted to find the deepest node in that whole subtree, how many nodes would you have to</p>



<p class="wp-block-paragraph">touch to get there? We&#8217;d have to touch the 12 and then touch the 19. We touch two nodes, so the height</p>



<p class="wp-block-paragraph">of that subtree is two. Maybe I&#8217;ll just put H equals two here. So now for the right subtree of</p>



<p class="wp-block-paragraph">the 33 node, it&#8217;s kind of easier. We just basically only have one node to really look at.</p>



<p class="wp-block-paragraph">that means that 39 has a depth of 0 and the right subtree has a height of 1.</p>



<p class="wp-block-paragraph">Whoops, 8 equals 1.</p>



<p class="wp-block-paragraph">I didn&#8217;t put two equal signs. I like to do two.</p>



<p class="wp-block-paragraph">I like to do the comparison operator.</p>



<p class="wp-block-paragraph">We could also do the same thing with the 42 node, right?</p>



<p class="wp-block-paragraph">We can say, let&#8217;s get rid of all this stuff real fast.</p>



<p class="wp-block-paragraph">We can do the 42.</p>



<p class="wp-block-paragraph">Its left subtree starts with that 33 node.</p>



<p class="wp-block-paragraph">33 node so I&#8217;m just going to highlight that real fast the 42 nodes left subtree has a height of</p>



<p class="wp-block-paragraph">one two three and you can tell because the 33 has a depth of zero a relative depth of zero and</p>



<p class="wp-block-paragraph">the 12 and the 39 have one and the 19 has two so the deepest node has a depth of two</p>



<p class="wp-block-paragraph">so that means the height of that subtree is is three so I&#8217;m just going to like do this real fast</p>



<p class="wp-block-paragraph">and then the right subtree of the 42 node, the root node of the entire tree, is going to be this.</p>



<p class="wp-block-paragraph">So the root node has a depth of zero, depth of zero, and then these other leaves over here have</p>



<p class="wp-block-paragraph">depth of ones, which means the height of this subtree is going to be two, or the deepest node</p>



<p class="wp-block-paragraph">plus one, or the number of nodes you need to touch to find the deepest node. And 56 and 76,</p>



<p class="wp-block-paragraph">those are both equally the deepest node in those trees okay so we talked about a bunch of</p>



<p class="wp-block-paragraph">terminology here let me just double check my notes in case I forgot to to tell you anything</p>



<p class="wp-block-paragraph">I think I&#8217;m all right well maybe okay maybe I should real fast just briefly mention that these</p>



<p class="wp-block-paragraph">nodes I mean this is not really part of the video exactly but let&#8217;s let me just mention that these</p>



<p class="wp-block-paragraph">whoops that&#8217;s dumb let me do a blue circle they would have you know there&#8217;s</p>



<p class="wp-block-paragraph">like some sort of an object you would call it a node and then they would have</p>



<p class="wp-block-paragraph">pointers they would have each of these nodes would have a pointer to its</p>



<p class="wp-block-paragraph">parents and it would have a left child pointer that goes down into the left and</p>



<p class="wp-block-paragraph">a right child pointer that goes down to the right and also a little slot in that</p>



<p class="wp-block-paragraph">object for the data so I&#8217;m just going to put t type data and C++ I usually say</p>



<p class="wp-block-paragraph">I usually say that the templated data type for a node or data structure is just the T type.</p>



<p class="wp-block-paragraph">That just means you could put anything you want.</p>



<p class="wp-block-paragraph">You could have your nodes hold integers, letters, strings, custom objects, whatever you want to do.</p>



<p class="wp-block-paragraph">And we&#8217;ll talk about this more in future videos.</p>



<p class="wp-block-paragraph">But long story short, I want you to just imagine that every node actually has three pointers inside of it pointing to something else, to other nodes,</p>



<p class="wp-block-paragraph">graph because in a graph you could have like a whole bunch of different connections and that&#8217;s</p>



<p class="wp-block-paragraph">usually managed by the actual graph object itself so anyway we&#8217;re done with terminology i hope you</p>



<p class="wp-block-paragraph">learned a little bit of stuff and had a little bit of fun thanks for watching this video</p>



<p class="wp-block-paragraph">tell your friends eat a donut and a chocolate and then be really happy and stuff okay i gotta go</p>



<p class="wp-block-paragraph">Hey everybody!</p>



<p class="wp-block-paragraph">Thanks for watching this video again from the bottom of my heart.</p>



<p class="wp-block-paragraph">I really appreciate it.</p>



<p class="wp-block-paragraph">I do hope you did learn something and have some fun.</p>



<p class="wp-block-paragraph">If you could do me a please, a small little favor,</p>



<p class="wp-block-paragraph">could you please subscribe and follow this channel or these videos</p>



<p class="wp-block-paragraph">or whatever it is you do on the current social media website</p>



<p class="wp-block-paragraph">that you&#8217;re looking at right now.</p>



<p class="wp-block-paragraph">It would really mean the world to me and it&#8217;ll help make more videos</p>



<p class="wp-block-paragraph">and grow this community.</p>



<p class="wp-block-paragraph">So we&#8217;ll be able to do more videos, longer videos, better videos,</p>



<p class="wp-block-paragraph">or just I&#8217;ll be able to keep making videos in general so please do do me a</p>



<p class="wp-block-paragraph">kindness and and subscribe you know sometimes I&#8217;m sleeping in the middle of</p>



<p class="wp-block-paragraph">the night and I just wake up because I know somebody subscribed or followed it</p>



<p class="wp-block-paragraph">just wakes me up and I get filled with joy that&#8217;s exactly what happens every</p>



<p class="wp-block-paragraph">single time so you could do it as a nice favor to me or you could you control me</p>



<p class="wp-block-paragraph">if you want to just wake me up in the middle of the night just subscribe and</p>



<p class="wp-block-paragraph">then I&#8217;ll just wake up I promise that&#8217;s what will happen also if you look at the</p>



<p class="wp-block-paragraph">at the middle of the screen right now you should see a qr code which you can scan in order to go</p>



<p class="wp-block-paragraph">to the website which i think is also named somewhere at the bottom of this video and it&#8217;ll</p>



<p class="wp-block-paragraph">take you to my main website where you can just kind of like see all the videos i published and</p>



<p class="wp-block-paragraph">the services and tutorials and things that i offer and all that good stuff and uh</p>



<p class="wp-block-paragraph">if you have a suggestion for uh clarifications or errata or just future videos that you want to see</p>



<p class="wp-block-paragraph">say hey what&#8217;s up what&#8217;s going on you know just send me a comment whatever i also wake up for</p>



<p class="wp-block-paragraph">those in the middle of the night i get i wake up in a cold sweat and i&#8217;m like it would really it</p>



<p class="wp-block-paragraph">really mean the world to me i would really appreciate it so again thank you so much for</p>



<p class="wp-block-paragraph">watching this video and um enjoy the cool music as as i fade into the darkness which is coming for us</p>



<p class="wp-block-paragraph">Thank you.</p>
<p>The post <a href="https://www.NeuralLantern.com/bst-terminology-root-leaves-subtrees-depth-height-ancestors-more/">BST Terminology: Root, Leaves, Subtrees, Depth, Height, Ancestors &amp; More</a> appeared first on <a href="https://www.NeuralLantern.com">NeuralLantern.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.NeuralLantern.com/bst-terminology-root-leaves-subtrees-depth-height-ancestors-more/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
