<?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>tree Archives -</title>
	<atom:link href="https://mitindia.in/tag/tree/feed/" rel="self" type="application/rss+xml" />
	<link>https://mitindia.in/tag/tree/</link>
	<description></description>
	<lastBuildDate>Thu, 24 Nov 2016 12:12:26 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://mitindia.in/wp-content/uploads/2023/03/cropped-android-chrome-512x512-1-32x32.png</url>
	<title>tree Archives -</title>
	<link>https://mitindia.in/tag/tree/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Trees &#8211; Data Structure</title>
		<link>https://mitindia.in/trees-data-structure/</link>
		
		<dc:creator><![CDATA[SKB]]></dc:creator>
		<pubDate>Thu, 24 Nov 2016 12:12:26 +0000</pubDate>
				<category><![CDATA[C Programming]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[tree]]></category>
		<guid isPermaLink="false">http://www.mitindia.in/?p=610</guid>

					<description><![CDATA[<p>Introduction to Trees [Data Structure] &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- A tree  is a finite set of one or more nodes There is a specially designated node called the root  Remaining nodes are partitioned into n&#62;=0 disjoint sets T1,…..Tn, where each of these sets is a tree. The sets T1,…. Tn are called subtrees of the root. &#160; Terminologies [&#8230;]</p>
<p>The post <a href="https://mitindia.in/trees-data-structure/">Trees &#8211; Data Structure</a> appeared first on <a href="https://mitindia.in"></a>.</p>
]]></description>
										<content:encoded><![CDATA[<h3><span style="color: #993300;"><strong>Introduction to Trees [Data Structure]</strong></span></h3>
<p><strong><span style="color: #003366;">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span></strong></p>
<p><strong><span style="color: #003366;">A tree  is a finite set of one or more nodes</span></strong></p>
<p><strong><span style="color: #003366;">There is a specially designated node called the root </span></strong></p>
<p><strong><span style="color: #003366;">Remaining nodes are partitioned into n&gt;=0 disjoint sets T1,…..Tn, where each of these sets is a tree.</span></strong></p>
<p><strong><span style="color: #003366;">The sets T1,…. Tn are called subtrees of the root.</span></strong></p>
<p>&nbsp;</p>
<p><span style="color: #ff6600;"><strong>Terminologies in Tree</strong></span></p>
<p><strong><span style="color: #003366;">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span></strong></p>
<p><strong><span style="color: #003366;">The degree of a node is defined as the number of subtrees of that node.</span></strong></p>
<p><strong><span style="color: #003366;">Nodes that have degree zero are called leaf or terminal nodes.</span></strong></p>
<p><strong><span style="color: #003366;">The other nodes are referred to as non-terminals.</span></strong></p>
<p><strong><span style="color: #003366;">The nodes, which are subtrees of some other node, are called children of that node.</span></strong></p>
<p>&nbsp;</p>
<p><strong><span style="color: #003366;">The node, which contains subtrees, are called the parent.</span></strong></p>
<p><strong><span style="color: #003366;">Children of the same parent are said to be siblings.</span></strong></p>
<p><strong><span style="color: #003366;">The degree of a tree is the maximum of degree of the nodes of the tree.</span></strong></p>
<p><strong><span style="color: #003366;">The level of a node is defined by initially letting the root be at level one.</span></strong></p>
<p><strong><span style="color: #003366;">The height or depth of a tree is defined to be the maximum level of any node in that tree.</span></strong></p>
<p>&nbsp;</p>
<p><span style="color: #ff6600;"><strong>Application of Trees</strong></span></p>
<p><strong><span style="color: #003366;">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span></strong></p>
<p><strong><span style="color: #003366;">Trees can be implemented in following applications</span></strong></p>
<p><strong><span style="color: #003366;">Implementing the file systems of several operating systems.</span></strong></p>
<p><strong><span style="color: #003366;">Evaluation of Arithmetic expressions.</span></strong></p>
<p><strong><span style="color: #003366;">Set Representations.</span></strong></p>
<p><strong><span style="color: #003366;">Efficient sorting.</span></strong></p>
<p><strong><span style="color: #003366;">Reduction of the time complexity of some searching operations.</span></strong></p>
<p>&nbsp;</p>
<p><span style="color: #ff6600;"><strong>Operations and traversal on trees</strong></span></p>
<p><strong><span style="color: #003366;">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span></strong></p>
<p><strong><span style="color: #003366;">Basically, binary tree traversal can be carried out in 3 ways.</span></strong></p>
<ul>
<li><strong><span style="color: #003366;">Inorder</span></strong></li>
<li><strong><span style="color: #003366;">Preorder</span></strong></li>
<li><strong><span style="color: #003366;">Postorder</span></strong></li>
</ul>
<p>&nbsp;</p>
<p><strong><span style="color: #003366;">Inorder: In this method of traversal, first the left sub tree is traversed (visited), then the root and finally traversing the right sub tree.</span></strong></p>
<p><strong><span style="color: #003366;">Preorder: In this method, the root is traversed first, then the left sub tree and finally visiting the right sub tree.</span></strong></p>
<p><strong><span style="color: #003366;">Postorder:In this method, left sub tree is traversed first, then right sub tree and finally visiting the root.</span></strong></p>
<p>&nbsp;</p>
<p><span style="color: #ff6600;"><strong>Binary Trees</strong></span></p>
<p><strong><span style="color: #003366;">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</span></strong></p>
<p><strong><span style="color: #003366;">A binary tree is a finite set of nodes that is either empty or consists of a root and two disjoint binary trees called the left and right subtrees.</span></strong></p>
<p>&nbsp;</p>
<p><span style="color: #ff6600;"><strong>Types of Binary Trees</strong></span></p>
<p><strong><span style="color: #003366;">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span></strong></p>
<p><strong><span style="color: #003366;">There are two special kinds of binary trees.</span></strong></p>
<ol>
<li><strong><span style="color: #003366;">Skewed tree</span></strong></li>
<li><strong><span style="color: #003366;">Complete Binary tree.</span></strong></li>
</ol>
<p>&nbsp;</p>
<p><span style="color: #ff6600;"><strong>Binary Search Trees</strong></span></p>
<p><strong><span style="color: #003366;">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</span></strong></p>
<p><strong><span style="color: #003366;">A Binary Search Tree is a binary tree. It may be empty. If it is not empty, then it satisfies the following properties.</span></strong></p>
<p><strong><span style="color: #003366;">Every element has a key and no two elements have the same key (i.e., the keys are distinct).</span></strong></p>
<p><strong><span style="color: #003366;">The keys (if any) in the left sub tree are smaller than the key in the root.</span></strong></p>
<p><strong><span style="color: #003366;">The keys (if any) in the right sub tree are greater than the key in the root.</span></strong></p>
<p><strong><span style="color: #003366;">The left and right sub trees are also binary search trees.</span></strong></p>
<p>&nbsp;</p>
<p><span style="color: #ff6600;"><strong>Operations on Binary Search Tree</strong></span></p>
<p><strong><span style="color: #003366;">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</span></strong></p>
<p><strong><span style="color: #003366;">Searching a Binary Search Tree</span></strong></p>
<p><strong><span style="color: #003366;">Insertion Into a Binary Search Tree</span></strong></p>
<p><strong><span style="color: #003366;">Deletion from a Binary Search Tree</span></strong></p>
<p><a class="a2a_button_whatsapp" href="https://www.addtoany.com/add_to/whatsapp?linkurl=https%3A%2F%2Fmitindia.in%2Ftrees-data-structure%2F&amp;linkname=Trees%20%E2%80%93%20Data%20Structure" title="WhatsApp" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fmitindia.in%2Ftrees-data-structure%2F&amp;linkname=Trees%20%E2%80%93%20Data%20Structure" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fmitindia.in%2Ftrees-data-structure%2F&#038;title=Trees%20%E2%80%93%20Data%20Structure" data-a2a-url="https://mitindia.in/trees-data-structure/" data-a2a-title="Trees – Data Structure"><img src="https://static.addtoany.com/buttons/favicon.png" alt="Share"></a></p><p>The post <a href="https://mitindia.in/trees-data-structure/">Trees &#8211; Data Structure</a> appeared first on <a href="https://mitindia.in"></a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
