<?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>binary search tree explained Archives - NeuralLantern.com</title>
	<atom:link href="https://www.NeuralLantern.com/tag/binary-search-tree-explained/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.NeuralLantern.com/tag/binary-search-tree-explained/</link>
	<description></description>
	<lastBuildDate>Mon, 06 Apr 2026 09:25:43 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://www.NeuralLantern.com/wp-content/uploads/2025/04/cropped-2025-04-04-Lantern-03-32x32.png</url>
	<title>binary search tree explained Archives - NeuralLantern.com</title>
	<link>https://www.NeuralLantern.com/tag/binary-search-tree-explained/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<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>
		<item>
		<title>Binary Search Tree Definition Explained Step by Step</title>
		<link>https://www.NeuralLantern.com/binary-search-tree-definition-explained-step-by-step/</link>
					<comments>https://www.NeuralLantern.com/binary-search-tree-definition-explained-step-by-step/#respond</comments>
		
		<dc:creator><![CDATA[mike]]></dc:creator>
		<pubDate>Tue, 31 Mar 2026 03:10:16 +0000</pubDate>
				<category><![CDATA[Binary Search Trees]]></category>
		<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Data Structures]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[acyclic graph]]></category>
		<category><![CDATA[algorithms]]></category>
		<category><![CDATA[binary search tree]]></category>
		<category><![CDATA[binary search tree definition]]></category>
		<category><![CDATA[binary search tree explained]]></category>
		<category><![CDATA[binary tree vs binary search tree]]></category>
		<category><![CDATA[bst]]></category>
		<category><![CDATA[bst for beginners]]></category>
		<category><![CDATA[bst ordering property]]></category>
		<category><![CDATA[bst rules]]></category>
		<category><![CDATA[computer science]]></category>
		<category><![CDATA[connected graph]]></category>
		<category><![CDATA[data structures]]></category>
		<category><![CDATA[left subtree right subtree]]></category>
		<category><![CDATA[rooted binary tree]]></category>
		<category><![CDATA[tree data structure]]></category>
		<category><![CDATA[what is a binary search tree]]></category>
		<guid isPermaLink="false">https://www.NeuralLantern.com/?p=324</guid>

					<description><![CDATA[<p>A Binary Search Tree (BST) is a rooted binary tree where for every node, all values in its left subtree are less than the node's value, and all values in its right subtree are greater than the node's value. No duplicates in this simple version.</p>
<p>The post <a href="https://www.NeuralLantern.com/binary-search-tree-definition-explained-step-by-step/">Binary Search Tree Definition Explained 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 Definition Explained Step by Step" width="1380" height="776" src="https://www.youtube.com/embed/H1BU1UkFiDo?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">Clear step-by-step explanation of what defines a Binary Search Tree (BST). We build the definition rule-by-rule starting from graphs all the way to the BST ordering property (all left descendants, node, all right descendants). Great first video before learning insert, delete, search, and Big-O.</p>



<p class="wp-block-paragraph">What is a Binary Search Tree? 00:00<br>Intro to Graphs and Nodes 00:42<br>Connected Graph Requirement 03:16<br>Acyclic Graph &#8211; Removing Cycles 04:54<br>Turning Graph into Tree 07:05<br>Establishing a Root 07:09<br>Adding Hierarchy and Levels 09:05<br>Single Common Ancestor 11:18<br>Binary Tree Definition 17:30<br>BST Ordering Property 17:39<br>Left Subtree Less Than Node 18:29<br>Fixing Invalid BST Example 20:26<br>Valid BST Final Check 21:24<br>In-Order Ascending Order 24:11<br>Video Summary and Next Steps 25:02<br>Thanks and Call to Action 25:30</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">hey there let&#8217;s talk about binary search trees specifically in this video I want to help you</p>



<p class="wp-block-paragraph">define and identify what is a binary search tree all the rules that go into determining whether</p>



<p class="wp-block-paragraph">or not something is a binary search tree so you can you can tell that you&#8217;re looking at one or</p>



<p class="wp-block-paragraph">whether you&#8217;re not looking at one we&#8217;ll talk about some terminology but keep in mind I&#8217;m</p>



<p class="wp-block-paragraph">going to save searching and sorting and like you know deleting and adding items and a whole bunch</p>



<p class="wp-block-paragraph">extra stuff, especially the hard stuff for videos that&#8217;ll come right after this one.</p>



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



<p class="wp-block-paragraph">So you can see on the screen right here, I hope that we have a binary search tree.</p>



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



<p class="wp-block-paragraph">Can you see that?</p>



<p class="wp-block-paragraph">Yeah, I think you probably can.</p>



<p class="wp-block-paragraph">Yeah, I think you can.</p>



<p class="wp-block-paragraph">This is not drawn quite as well as I would like to draw ours.</p>



<p class="wp-block-paragraph">I&#8217;ll tell you how to do that in a little while.</p>



<p class="wp-block-paragraph">to do that in a little while but when you draw a tree in a really really nice pretty aligned way</p>



<p class="wp-block-paragraph">it&#8217;s way easier to debug it&#8217;s way easier to tell that you&#8217;re looking at something that is sorted</p>



<p class="wp-block-paragraph">and so forth anyway okay so first let&#8217;s start off with a graph so this is not a video about graphs</p>



<p class="wp-block-paragraph">uh i guess i can probably expect that you already kind of know what a graph is at this point in time</p>



<p class="wp-block-paragraph">and edges. So what do I mean by nodes? Well just imagine there&#8217;s like a little circle here</p>



<p class="wp-block-paragraph">that contains some sort of data. If you know data structures already then</p>



<p class="wp-block-paragraph">there would be a t-type sitting inside the node. We&#8217;ll just call the t-type an integer</p>



<p class="wp-block-paragraph">and so for our nodes, for our trees, we&#8217;re just going to say that they hold integers even though</p>



<p class="wp-block-paragraph">you know technically speaking in a binary search tree or a graph you could have all sorts of</p>



<p class="wp-block-paragraph">Okay. So I&#8217;m just going to, you know, grab this and sort of like duplicate it and just duplicate it again.</p>



<p class="wp-block-paragraph">I&#8217;m just going to make a bunch of duplicates. Something is definitely wonky about my setup right now.</p>



<p class="wp-block-paragraph">I think I just upgraded the camera and the CPU is maxed out. I just upgraded the CPU on this computer too.</p>



<p class="wp-block-paragraph">Oh well. Okay. So we aren&#8217;t going to support duplicate values in our binary search tree,</p>



<p class="wp-block-paragraph">I&#8217;m going to say it doesn&#8217;t really matter for the graph. Later on, we&#8217;ll start making sure there&#8217;s</p>



<p class="wp-block-paragraph">no duplicate data. For now, I think I can probably do that somewhat quickly. Let&#8217;s see. So a graph,</p>



<p class="wp-block-paragraph">you know, for the for our purposes right now, a graph is just basically a collection of nodes and</p>



<p class="wp-block-paragraph">edges. It could be empty. It could be just nodes. It couldn&#8217;t just be edges, it would have an edge</p>



<p class="wp-block-paragraph">always has to have a node or two connected to it. So we just have like a bunch of nodes inside of</p>



<p class="wp-block-paragraph">data values this is a valid graph but I&#8217;m going to draw some edges randomly here so we&#8217;re going</p>



<p class="wp-block-paragraph">to do this it doesn&#8217;t really matter I&#8217;m just randomly drawing edges okay actually I should</p>



<p class="wp-block-paragraph">probably do maybe like one that&#8217;s kind of separated okay so this is a graph this is not a binary search</p>



<p class="wp-block-paragraph">tree so let&#8217;s add a bunch of rules let me just pull up my rules real fast here okay so what is</p>



<p class="wp-block-paragraph">First we&#8217;ll start off with the graph like we have here and then we&#8217;ll say that the graph must be connected.</p>



<p class="wp-block-paragraph">What is a connected graph? A connected graph is basically a graph where every single node can find every single other node</p>



<p class="wp-block-paragraph">or find a path to every single other node only following along edges and only by respecting the direction of edges.</p>



<p class="wp-block-paragraph">You can see this particular graph is undirected meaning the edges don&#8217;t really have a direction to them.</p>



<p class="wp-block-paragraph">So that means we could travel along in any direction from node to node.</p>



<p class="wp-block-paragraph">So just as a real quick, you know, I guess like tutorial, I&#8217;m going to say is 8 connected to every single other node?</p>



<p class="wp-block-paragraph">Well, it can find a path to 12 and it can find a path to 33 and it can find a path to 76 and 45.</p>



<p class="wp-block-paragraph">But it cannot find a path to 99, which means this is not a connected graph.</p>



<p class="wp-block-paragraph">So that&#8217;s the first rule that we have to implement here.</p>



<p class="wp-block-paragraph">We&#8217;re going to say this graph needs to be upgraded or modified so that it will be a connected graph.</p>



<p class="wp-block-paragraph">start randomly adding edges until this is a connected graph I&#8217;m gonna do maybe</p>



<p class="wp-block-paragraph">like an edge from 99 to 12 there and then now I think this is a connected</p>



<p class="wp-block-paragraph">graph but let&#8217;s double check real fast so connected graph you know what I&#8217;m</p>



<p class="wp-block-paragraph">gonna put graph connectedness in another video to keep this one short for now</p>



<p class="wp-block-paragraph">check out my other videos if you would like to see whether or not a graph is</p>



<p class="wp-block-paragraph">but long story short as I just said if every single node can find a path to</p>



<p class="wp-block-paragraph">every single other node without you know skipping where there is no edge then</p>



<p class="wp-block-paragraph">it&#8217;s connected okay so that&#8217;s the first thing the next thing that we need let me</p>



<p class="wp-block-paragraph">just put the words connected up here we need a connected graph the next thing</p>



<p class="wp-block-paragraph">that we need is we need an acyclic graph which basically means a graph with no</p>



<p class="wp-block-paragraph">A cycle is, can you find a path in this graph that starts at one node and ends at the same node without repeating any edges?</p>



<p class="wp-block-paragraph">So for example, if I was asking, you know, is 76 involved in any cycles?</p>



<p class="wp-block-paragraph">Well, we could go from 76 to 33 and then 12.</p>



<p class="wp-block-paragraph">And, you know, we could kind of take 8, 45, 12 again.</p>



<p class="wp-block-paragraph">But by the time we turn around and try to get back to the 33, we&#8217;ve already crossed this edge twice.</p>



<p class="wp-block-paragraph">so that means the 76 is not involved in any cycles because we cannot find our way back to 76</p>



<p class="wp-block-paragraph">without repeating an edge so 76 is okay i&#8217;m just going to maybe put like a little check box here</p>



<p class="wp-block-paragraph">and uh you can also tell that the 33 is not involved in any cycles because we go down to</p>



<p class="wp-block-paragraph">the 76 and then come back up to 33 we already repeated an edge so that&#8217;s not valid same thing</p>



<p class="wp-block-paragraph">again. Same thing for the 34, same thing for the 99. But if you look at the 12 here, we could</p>



<p class="wp-block-paragraph">actually find a cycle. We could go from the 12 to the 8, and then from the 8 to the 45, and from the</p>



<p class="wp-block-paragraph">45 to the 12. Now we&#8217;re back where we started. We&#8217;re at the 12 node again, and we did not repeat</p>



<p class="wp-block-paragraph">any edges. So this is not a cyclic. This is a cyclic graph. It&#8217;s got a cycle. So that&#8217;s the</p>



<p class="wp-block-paragraph">we want to make sure that our graph has no cycles. So, uh, the next rule I&#8217;m just going to say is,</p>



<p class="wp-block-paragraph">is going to be satisfied by me removing some edges at random. So I don&#8217;t know, let&#8217;s get rid of, uh,</p>



<p class="wp-block-paragraph">the eight to the 45 connection. See if that works. Um, let&#8217;s see. Well, wait a minute. What did I</p>



<p class="wp-block-paragraph">just do? Something happened here. I just accidentally, oh, I erased too many edges</p>



<p class="wp-block-paragraph">from the last slide. Okay. Let me add that one back in 33 to 76. That was supposed to be there.</p>



<p class="wp-block-paragraph">33 to 76 that was supposed to be there.</p>



<p class="wp-block-paragraph">So now we have an acyclic graph</p>



<p class="wp-block-paragraph">and we can consider this graph a tree.</p>



<p class="wp-block-paragraph">The next thing we need to do is add a hierarchy to this tree.</p>



<p class="wp-block-paragraph">So this is gonna make more sense in a little bit</p>



<p class="wp-block-paragraph">but for now I&#8217;m gonna say,</p>



<p class="wp-block-paragraph">we&#8217;ll imagine a family tree kind of,</p>



<p class="wp-block-paragraph">it&#8217;s not really exactly a family tree</p>



<p class="wp-block-paragraph">but you know imagine there are parents</p>



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



<p class="wp-block-paragraph">and we&#8217;ll just try to like,</p>



<p class="wp-block-paragraph">we&#8217;ll try to rank children according to</p>



<p class="wp-block-paragraph">according to you know when they were born or or how many parents or children</p>



<p class="wp-block-paragraph">they have you know their descendancy their lineage whatever you want to call</p>



<p class="wp-block-paragraph">it so I think I&#8217;m just gonna maybe move the eight up a little bit so that it&#8217;s</p>



<p class="wp-block-paragraph">on the same rank with the 12 and the 33 so I&#8217;m just gonna move these up a little</p>



<p class="wp-block-paragraph">bit and then redo their connecting lines so I&#8217;m gonna do this and that and then</p>



<p class="wp-block-paragraph">and then we&#8217;ll say that the 76 is still a child of the 33.</p>



<p class="wp-block-paragraph">So I&#8217;ll just kind of move it over here.</p>



<p class="wp-block-paragraph">Or sorry, we never said it was a child.</p>



<p class="wp-block-paragraph">Now we&#8217;re saying it&#8217;s a child</p>



<p class="wp-block-paragraph">because when you go from top to bottom,</p>



<p class="wp-block-paragraph">imagine like a family tree,</p>



<p class="wp-block-paragraph">we&#8217;ll say we have parents and children.</p>



<p class="wp-block-paragraph">The children or the descendants are lower.</p>



<p class="wp-block-paragraph">The ancestors or the parents or the grandparents are higher.</p>



<p class="wp-block-paragraph">Maybe I want to put this 45 over on the left</p>



<p class="wp-block-paragraph">so that it&#8217;s a child of the 8 node.</p>



<p class="wp-block-paragraph">And maybe I&#8217;ll say that the 99 node</p>



<p class="wp-block-paragraph">the 99 node is a child of the 12 node. Okay, so eventually this is going to look not exactly like</p>



<p class="wp-block-paragraph">a family tree because usually in the family tree we have two parents that go to one or more children.</p>



<p class="wp-block-paragraph">In this type of tree, in eventually our binary tree, we&#8217;re going to have one parent that has,</p>



<p class="wp-block-paragraph">you know, children just by itself, like asexual reproduction. We&#8217;re pretending to be bacteria</p>



<p class="wp-block-paragraph">What was that comedy skit a long time ago, Tiny Elvis?</p>



<p class="wp-block-paragraph">And he was like, hey, see that protozoa over there?</p>



<p class="wp-block-paragraph">The thing is huge.</p>



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



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



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



<p class="wp-block-paragraph">So the next rule we need is we must have a rooted tree.</p>



<p class="wp-block-paragraph">What is a rooted tree?</p>



<p class="wp-block-paragraph">Actually, let me clean up the lineage real fast, the heritage.</p>



<p class="wp-block-paragraph">I want to make nodes that have the same level with respect to their ancestors</p>



<p class="wp-block-paragraph">respect to their ancestors to have the same physical y coordinate the same</p>



<p class="wp-block-paragraph">physical level so notice how the 99 I just moved it down a little bit because</p>



<p class="wp-block-paragraph">I wanted it to look like it&#8217;s the same you know number of generations lower</p>



<p class="wp-block-paragraph">than the top row so like with aid it had a child 45 so that&#8217;s one level down 33</p>



<p class="wp-block-paragraph">had a child that&#8217;s one level down that&#8217;s a 76 and the 12 also one level down</p>



<p class="wp-block-paragraph">would have been 99 but the 99 was kind of too physically high this will help</p>



<p class="wp-block-paragraph">will help you debug your binary trees in the future anyway so i&#8217;m just going to clean this up right now</p>



<p class="wp-block-paragraph">and uh now that we have you know parent child relationships we need to look at the most common</p>



<p class="wp-block-paragraph">ancestor in the whole entire tree or if there is one so notice how uh i guess i&#8217;m just kind of using</p>



<p class="wp-block-paragraph">the word ancestor without explaining it so your ancestors are the people that you&#8217;re disappointing</p>



<p class="wp-block-paragraph">or whatever it is, ancestors came before us, right?</p>



<p class="wp-block-paragraph">Like my parents are my ancestors.</p>



<p class="wp-block-paragraph">My grandparents are also my ancestors.</p>



<p class="wp-block-paragraph">My great-grandparents are also my ancestors.</p>



<p class="wp-block-paragraph">Going down in the family tree are your descendants.</p>



<p class="wp-block-paragraph">You know, my children are my descendants.</p>



<p class="wp-block-paragraph">My grandchildren are my descendants.</p>



<p class="wp-block-paragraph">My great-grandchildren are my descendants and so forth.</p>



<p class="wp-block-paragraph">So if you look at the number 34 here,</p>



<p class="wp-block-paragraph">what is the greatest ancestor that it has?</p>



<p class="wp-block-paragraph">Well, if you just go up and up and up</p>



<p class="wp-block-paragraph">until you can&#8217;t go up anymore,</p>



<p class="wp-block-paragraph">up until you can&#8217;t go up anymore it&#8217;s the 12th so that means the greatest ancestor of at least in</p>



<p class="wp-block-paragraph">this tree of the 34 is the 12th the 45 the highest you can go is the 8 notice how 8 and 12 and 33 are</p>



<p class="wp-block-paragraph">siblings there&#8217;s not really like a parent-child relationship they&#8217;re connected sideways we&#8217;ll</p>



<p class="wp-block-paragraph">eventually get rid of the sideways connections for our binary search trees but for now we have</p>



<p class="wp-block-paragraph">some siblings and so we actually have three different greatest ancestors in this tree we&#8217;ve</p>



<p class="wp-block-paragraph">tree we&#8217;ve got 8 and 12 and 33 and that&#8217;s no good so the next rule that we need is we need</p>



<p class="wp-block-paragraph">one common ancestor for every single other node in the entire tree so I&#8217;m going to duplicate this</p>



<p class="wp-block-paragraph">slide right here and I&#8217;m going to say we need to clean this up so we got to choose 8 or 12 or 33</p>



<p class="wp-block-paragraph">I don&#8217;t know I&#8217;m just going to maybe say that 8 and it&#8217;s 45 are children of the 12 so I&#8217;m just</p>



<p class="wp-block-paragraph">line here arbitrarily so i&#8217;m gonna go like that notice how i&#8217;m trying to keep the 8 the 99 and</p>



<p class="wp-block-paragraph">the 76 on the same y coordinate the same level now we have two uh you know greatest ancestors</p>



<p class="wp-block-paragraph">we need to have only one so i think i&#8217;m probably going to say that the 33 and the 76 are going to</p>



<p class="wp-block-paragraph">become children of the 12 node just for simplicity so i&#8217;m going to put this over here i&#8217;m going to</p>



<p class="wp-block-paragraph">i&#8217;m gonna like move this over here this is a gross tree but we&#8217;ll fix it soon we&#8217;ll do that all right</p>



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



<p class="wp-block-paragraph">okay and then i have to get rid of that little sibling line and then i have to add another line</p>



<p class="wp-block-paragraph">to say that 33 is a child of 12. okay so now we have a rooted tree what we had before was an</p>



<p class="wp-block-paragraph">unrooted tree or just like not a rooted tree because there was no root there was no greatest</p>



<p class="wp-block-paragraph">greatest common ancestor to the entire rest of the tree. But now we can say that 12 is the root</p>



<p class="wp-block-paragraph">of the tree because it&#8217;s the ancestor for all other nodes. I guess even if 12 was by itself,</p>



<p class="wp-block-paragraph">we could call it a root of tree. It just wouldn&#8217;t be a very good example. So I&#8217;m going to actually</p>



<p class="wp-block-paragraph">get rid of the word acyclic here since we already handled that. And I&#8217;m going to do,</p>



<p class="wp-block-paragraph">I&#8217;m going to say that 34&#8217;s greatest ancestor is 12, 99&#8217;s greatest ancestor is 12, 33&#8217;s greatest</p>



<p class="wp-block-paragraph">all the nodes in the tree their greatest ancestor is 12 and it&#8217;s common to all of them so now we</p>



<p class="wp-block-paragraph">have a rooted tree maybe I should type in my doomed I really hope the screen I really hope</p>



<p class="wp-block-paragraph">the screen cast doesn&#8217;t freeze it probably will upgraded the CPU it&#8217;s 33 faster than it was before</p>



<p class="wp-block-paragraph">board so i am still using an old cpu even though it&#8217;s new to me dang it i&#8217;m gonna have to spend</p>



<p class="wp-block-paragraph">like 500 okay uh so the next rule is so we have a rooted tree and now let&#8217;s rearrange everything</p>



<p class="wp-block-paragraph">hierarchically which we already kind of did so uh there&#8217;s not really much to do here except</p>



<p class="wp-block-paragraph">we did hierarchical organization</p>



<p class="wp-block-paragraph">we probably just need to move on to our next rule which is to say that</p>



<p class="wp-block-paragraph">if our rooted tree is to become a binary tree</p>



<p class="wp-block-paragraph">then each node in the entire tree</p>



<p class="wp-block-paragraph">cannot have more than two children</p>



<p class="wp-block-paragraph">every single node in the entire tree</p>



<p class="wp-block-paragraph">can have zero or one or two children</p>



<p class="wp-block-paragraph">if there are three or more anywhere in the entire tree</p>



<p class="wp-block-paragraph">then it&#8217;s not a binary tree</p>



<p class="wp-block-paragraph">so okay that means you know the 45 is okay</p>



<p class="wp-block-paragraph">because it has no children</p>



<p class="wp-block-paragraph">because it has no children. All the rows, all the leaves at the bottom are okay. All these nodes</p>



<p class="wp-block-paragraph">over here are okay because they just have one child. But the 12 node, the root of the tree,</p>



<p class="wp-block-paragraph">it&#8217;s got three children and that violates the rule. So now we need to rearrange this.</p>



<p class="wp-block-paragraph">So I think I&#8217;m going to just move these numbers down here maybe. Whoops. Maybe move these nodes</p>



<p class="wp-block-paragraph">descendants of the 33 node. So I&#8217;m going to do this.</p>



<p class="wp-block-paragraph">Okay. So cool. Now we have a binary tree and now we need to rearrange the drawing a little bit.</p>



<p class="wp-block-paragraph">This is not part of the definition, but this will make it easier to debug your trees. So what I want</p>



<p class="wp-block-paragraph">to do is make it so that every left descendant of a node appears physically on that node&#8217;s left</p>



<p class="wp-block-paragraph">every right descendant of a node should appear on its right side</p>



<p class="wp-block-paragraph">or like further to the right on the x-coordinate</p>



<p class="wp-block-paragraph">so sort of similar to you know like the y-coordinate ranking</p>



<p class="wp-block-paragraph">but notice how the 12 its left child is 8 and its right child is 33</p>



<p class="wp-block-paragraph">so that means all the nodes here on the left side you know that come underneath the 8</p>



<p class="wp-block-paragraph">are left descendants or you could say that they are in the left subtree of the 12.</p>



<p class="wp-block-paragraph">So, they&#8217;re okay because 8 is to the left of 12 and 45 is to the left of 12.</p>



<p class="wp-block-paragraph">But notice how 33 is a right child of 12 and it&#8217;s part of the right subtree.</p>



<p class="wp-block-paragraph">It&#8217;s part of the right descendancy, but it&#8217;s physically on the left of 12.</p>



<p class="wp-block-paragraph">That&#8217;s going to be really bad because it&#8217;ll be harder to debug our trees later.</p>



<p class="wp-block-paragraph">So, I&#8217;m just going to slide it over without rearranging the tree.</p>



<p class="wp-block-paragraph">And I usually try to split the difference here.</p>



<p class="wp-block-paragraph">and then their parent is kind of like physically in the middle that will also help you debug in</p>



<p class="wp-block-paragraph">the future so i&#8217;m going to do this wrong let me get the blue i&#8217;m going to do this make sure that</p>



<p class="wp-block-paragraph">my ranking is still okay not the best most neatest tree and so now i&#8217;m going to look at the eight</p>



<p class="wp-block-paragraph">it&#8217;s left subtree or it&#8217;s left uh descendancy uh all of those nodes which is just the 45 are</p>



<p class="wp-block-paragraph">it&#8217;s left child 76 is the only thing that&#8217;s on the left side in the left subtree so that&#8217;s all</p>



<p class="wp-block-paragraph">right probably the 33 I think it&#8217;s still a little lopsided I probably could have you know dragged</p>



<p class="wp-block-paragraph">it a little bit more to the right but I&#8217;m going to leave it so the 33 and the 76 are okay and then</p>



<p class="wp-block-paragraph">the 99 is a right descendant or it&#8217;s part of the right subtree of the 33 so it should be on the</p>



<p class="wp-block-paragraph">right side it is that&#8217;s good the 34 should be on the right side of the 33 because it&#8217;s it&#8217;s a it&#8217;s</p>



<p class="wp-block-paragraph">It&#8217;s part of the right subtree of 33.</p>



<p class="wp-block-paragraph">It&#8217;s part of the right descendancy.</p>



<p class="wp-block-paragraph">And it should also be on the left side of the 99</p>



<p class="wp-block-paragraph">because it&#8217;s part of the left subtree of the 99.</p>



<p class="wp-block-paragraph">So, so far, this is okay.</p>



<p class="wp-block-paragraph">This is not the best drawing.</p>



<p class="wp-block-paragraph">So now we have a binary tree</p>



<p class="wp-block-paragraph">and we have kind of drawn it in a slightly good way.</p>



<p class="wp-block-paragraph">Not super great.</p>



<p class="wp-block-paragraph">The last rule that we&#8217;re going to add here is,</p>



<p class="wp-block-paragraph">whoops, what happened there?</p>



<p class="wp-block-paragraph">I&#8217;m supposed to do that, yeah.</p>



<p class="wp-block-paragraph">The last rule we&#8217;re going to add is</p>



<p class="wp-block-paragraph">we must have ordering to our nodes, to the numbers in our nodes. So what do I mean by ordering? Well,</p>



<p class="wp-block-paragraph">the whole reason that we want a binary search tree, at least usually, is because it&#8217;s really,</p>



<p class="wp-block-paragraph">really fast to search through. This is going to be a tree that we can search through in log time,</p>



<p class="wp-block-paragraph">which we&#8217;ll talk more about in another video. We&#8217;ll do time complexities and searching and stuff. But</p>



<p class="wp-block-paragraph">in order for this to be a super fast tree to search through, we need to be able to</p>



<p class="wp-block-paragraph">very quickly make a decision. Do we go down and to the left? Do we go down and to the right?</p>



<p class="wp-block-paragraph">left do we go down into the right and every decision we make should help us eliminate half</p>



<p class="wp-block-paragraph">of the remaining data set half of the tree at a time every time we go down a level and that&#8217;s only</p>



<p class="wp-block-paragraph">possible if the nodes themselves are ordered so what i&#8217;m going to do is say every node that&#8217;s on</p>



<p class="wp-block-paragraph">the left side or let&#8217;s say every descendant that&#8217;s on the left side of a node should be of a lesser</p>



<p class="wp-block-paragraph">value than that particular node every node that is on the right side of a node meaning it&#8217;s a right</p>



<p class="wp-block-paragraph">descendant of that node or part of the right subtree of the node should be greater than that</p>



<p class="wp-block-paragraph">node. Please note that this would not allow us to support duplicate values in our tree.</p>



<p class="wp-block-paragraph">You could use something like less than or equal to versus greater than if you wanted to support</p>



<p class="wp-block-paragraph">duplicate values in your tree. You could also change the T type, you know, the template type</p>



<p class="wp-block-paragraph">to a node from the data you want it to store to a list. So every single node has a list inside of it</p>



<p class="wp-block-paragraph">and the items in the list are just, you know, the regular values that you wanted. There&#8217;s a whole</p>



<p class="wp-block-paragraph">values that you wanted there&#8217;s a whole bunch of different ways you could actually do that</p>



<p class="wp-block-paragraph">but for now we&#8217;re going to see our trees don&#8217;t support duplicate values</p>



<p class="wp-block-paragraph">so okay we don&#8217;t support duplicate values but we need you know from left to right</p>



<p class="wp-block-paragraph">the order needs to look sane and this is kind of why we&#8217;re drawing the tree in this special way</p>



<p class="wp-block-paragraph">we&#8217;re trying to make our tree really easy to debug visually so check this out the way we&#8217;ve</p>



<p class="wp-block-paragraph">drawn this every single node has its own x coordinate basically notice how the 12 there&#8217;s</p>



<p class="wp-block-paragraph">nothing underneath it at least not directly underneath it the 33 the 34 all the nodes you</p>



<p class="wp-block-paragraph">know you can draw a straight line down from the node and it shouldn&#8217;t cross over with any other</p>



<p class="wp-block-paragraph">nodes or edges so that means now that we&#8217;ve drawn it this way and we&#8217;ve made sure that all the left</p>



<p class="wp-block-paragraph">descendants are on the left and all the right descendants are on the right we could actually</p>



<p class="wp-block-paragraph">just scan our eyes from left to right and be sure that we are seeing an increasing order or</p>



<p class="wp-block-paragraph">Since duplicates aren&#8217;t allowed in this tree, we&#8217;ll say an increasing order or an ascending order.</p>



<p class="wp-block-paragraph">So if we start at 45 and then we go to the right, we should see a higher number.</p>



<p class="wp-block-paragraph">So if we look at 8, 8 is a lower number.</p>



<p class="wp-block-paragraph">So this violates the ordering rule.</p>



<p class="wp-block-paragraph">This is not a valid binary search tree.</p>



<p class="wp-block-paragraph">It&#8217;s only a valid binary tree.</p>



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



<p class="wp-block-paragraph">Okay, so I could, you know, swap the 45 and the 8 or I could just increase the value of the 8 itself.</p>



<p class="wp-block-paragraph">of the 8 itself, I think it&#8217;ll be faster for me to just increase the 8 value. So I&#8217;m going to make</p>



<p class="wp-block-paragraph">it 52 now. So we&#8217;ve got 45, 52. Then we go to the right a little bit more. It should also increase.</p>



<p class="wp-block-paragraph">So 52 should increase. I&#8217;m just going to randomly increase it to, you know, 59, let&#8217;s say. Then as</p>



<p class="wp-block-paragraph">we go to the right, we see another number here. It is 76. That already is increased from 59.</p>



<p class="wp-block-paragraph">So we don&#8217;t need, we don&#8217;t need to alter that number. Then we go to the right one more time</p>



<p class="wp-block-paragraph">that because it&#8217;s lower than 76 so I&#8217;m going to put 87 then when we go to the right one more time</p>



<p class="wp-block-paragraph">that&#8217;s the 34 down here that&#8217;s definitely a decrease so we have to increase it now so I&#8217;m</p>



<p class="wp-block-paragraph">going to say 99 how about if I just do 92 yeah so now we have a 92 down here and then if we go</p>



<p class="wp-block-paragraph">to the right a little bit more there&#8217;s the 99 and now we actually have a binary search tree let&#8217;s</p>



<p class="wp-block-paragraph">just double check all the rules first off is this a graph yeah there&#8217;s nodes and edges there&#8217;s nothing</p>



<p class="wp-block-paragraph">There&#8217;s nodes and edges.</p>



<p class="wp-block-paragraph">There&#8217;s nothing weird happening.</p>



<p class="wp-block-paragraph">There&#8217;s not like a edge floating in the middle of nowhere.</p>



<p class="wp-block-paragraph">Is this a connected graph?</p>



<p class="wp-block-paragraph">Yeah, it is.</p>



<p class="wp-block-paragraph">Because every single node, if you followed, you know, the edges, you know, could find</p>



<p class="wp-block-paragraph">every single other node.</p>



<p class="wp-block-paragraph">Like the 45, it could find, you know, the 92 node if it just followed all these edges.</p>



<p class="wp-block-paragraph">Notice again that these edges have no direction.</p>



<p class="wp-block-paragraph">There&#8217;s no arrows on them.</p>



<p class="wp-block-paragraph">So we could go up or down in any direction we want.</p>



<p class="wp-block-paragraph">So that means the 76 can find everything else.</p>



<p class="wp-block-paragraph">else and so this is a connected graph for sure okay now that we have a</p>



<p class="wp-block-paragraph">connected graph is this an acyclic graph I don&#8217;t know about you but I can&#8217;t find</p>



<p class="wp-block-paragraph">any cycles in the graph right like the 92 it goes out but it doesn&#8217;t come back in</p>



<p class="wp-block-paragraph">same thing for the 76 if we went from the 76 up to the 87 and then took a</p>



<p class="wp-block-paragraph">right turn we wouldn&#8217;t be able to come back towards it without repeating that</p>



<p class="wp-block-paragraph">same edge so this is definitely an acyclic graph all of the nodes follow</p>



<p class="wp-block-paragraph">they&#8217;re not involved in cycles is this a rooted tree yeah there&#8217;s only one common ancestor to the</p>



<p class="wp-block-paragraph">entire tree it&#8217;s the 59 it&#8217;s the highest node in the entire tree and it&#8217;s common to all other of</p>



<p class="wp-block-paragraph">all of its descendants um so let&#8217;s see i&#8217;m going to duplicate this real fast the next thing is</p>



<p class="wp-block-paragraph">we arranged it hierarchically and we added the terminology of like i think i kind of just like</p>



<p class="wp-block-paragraph">tried to sneak this one past you but we added the terminology of a left child and a right child</p>



<p class="wp-block-paragraph">and a right child.</p>



<p class="wp-block-paragraph">Right? We also added the terminology of a right subtree and a left subtree.</p>



<p class="wp-block-paragraph">Just to clarify what I mean, what do I mean by a right subtree and a left subtree.</p>



<p class="wp-block-paragraph">So imagine we&#8217;re considering the 59.</p>



<p class="wp-block-paragraph">If we consider the 59, then the 52 is the root node of the left subtree of the 59 node.</p>



<p class="wp-block-paragraph">If we consider the 59, then the 87 is the root node of the right subtree of the 59 node.</p>



<p class="wp-block-paragraph">so the right child is basically the root of the subtree uh in in you know the right child is the</p>



<p class="wp-block-paragraph">root of a subtree of the right subtree uh i think i&#8217;m getting muddled my words here okay</p>



<p class="wp-block-paragraph">anyway so we have a little bit of terminology uh the 59 is the root node that&#8217;s like the</p>



<p class="wp-block-paragraph">the only node in the entire tree without uh an ancestor or a parent so okay uh then we have a</p>



<p class="wp-block-paragraph">Note, and the entire tree doesn&#8217;t have more than two children.</p>



<p class="wp-block-paragraph">Notice how the 59 has two children.</p>



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



<p class="wp-block-paragraph">If it was three, that&#8217;s way too much.</p>



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



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



<p class="wp-block-paragraph">No, 87 has two children.</p>



<p class="wp-block-paragraph">99 has one child.</p>



<p class="wp-block-paragraph">92 has zero children.</p>



<p class="wp-block-paragraph">So, okay, we&#8217;re not violating that rule.</p>



<p class="wp-block-paragraph">So, we definitely have a binary tree.</p>



<p class="wp-block-paragraph">And then we, you know, kind of read from left to right.</p>



<p class="wp-block-paragraph">Let me write down the numbers this time for fun.</p>



<p class="wp-block-paragraph">physically without kind of like following edges or anything we just scan</p>



<p class="wp-block-paragraph">our eyes from left to right we can see that we have an ascending list if we</p>



<p class="wp-block-paragraph">supported duplicates it would be okay to just see a non decreasing list but we</p>



<p class="wp-block-paragraph">see an increasing list or an ascended list ascending list okay whoops this is</p>



<p class="wp-block-paragraph">left to right so this is actually a binary search tree and um i don&#8217;t know about you but i think i</p>



<p class="wp-block-paragraph">need to like you know get a snickers or something right now because uh this video has been going on</p>



<p class="wp-block-paragraph">for longer than i wanted it to go on so we&#8217;ve defined a binary search tree in future videos</p>



<p class="wp-block-paragraph">we&#8217;ll talk about how to add nodes into a binary search tree how to build the tree what&#8217;s the time</p>



<p class="wp-block-paragraph">complexity of the tree in various operations deleting nodes from a tree terminology like</p>



<p class="wp-block-paragraph">terminology like what are these nodes called things like that so anyway thank you so much</p>



<p class="wp-block-paragraph">for for watching i hope you learned a little bit of stuff and had a little bit of fun</p>



<p class="wp-block-paragraph">i&#8217;ll see you at a later date in time</p>



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



<p class="wp-block-paragraph">hey everybody thanks for watching this video again from the bottom of my heart i really</p>



<p class="wp-block-paragraph">appreciate it i do hope you did learn something and have some fun uh if you could do me a please</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 or whatever it is you do on the current social media?</p>



<p class="wp-block-paragraph">It&#8217;s a website 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 and grow this community</p>



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



<p class="wp-block-paragraph">So please do do me a kindness and uh and subscribe</p>



<p class="wp-block-paragraph">I&#8217;m sleeping in the middle of the night and I just wake up because I know somebody subscribed or followed.</p>



<p class="wp-block-paragraph">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.</p>



<p class="wp-block-paragraph">So you could do it as a nice favor to me or you could troll me if you want to just wake me up in the middle of the night.</p>



<p class="wp-block-paragraph">Just subscribe and then I&#8217;ll just wake up.</p>



<p class="wp-block-paragraph">I promise that&#8217;s what will happen.</p>



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



<p class="wp-block-paragraph">which I think is also named somewhere at the bottom of this video.</p>



<p class="wp-block-paragraph">and it&#8217;ll take you to my main website where you can just kind of like see all the videos</p>



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



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



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



<p class="wp-block-paragraph">to see, please leave a comment.</p>



<p class="wp-block-paragraph">Or if you just want to say, Hey, what&#8217;s up?</p>



<p class="wp-block-paragraph">What&#8217;s going on?</p>



<p class="wp-block-paragraph">You know, just send me a comment, whatever.</p>



<p class="wp-block-paragraph">I also wake up for those in the middle of the night.</p>



<p class="wp-block-paragraph">I get, I wake up in a cold sweat and I&#8217;m like, it would really, it would really, it</p>



<p class="wp-block-paragraph">it would really mean the world to me.</p>



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



<p class="wp-block-paragraph">So again, thank you so much for watching this video</p>



<p class="wp-block-paragraph">and enjoy the cool music</p>



<p class="wp-block-paragraph">as I fade into the darkness,</p>



<p class="wp-block-paragraph">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-definition-explained-step-by-step/">Binary Search Tree Definition Explained 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-definition-explained-step-by-step/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
