<?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>operations on data structure Archives -</title>
	<atom:link href="https://mitindia.in/tag/operations-on-data-structure/feed/" rel="self" type="application/rss+xml" />
	<link>https://mitindia.in/tag/operations-on-data-structure/</link>
	<description></description>
	<lastBuildDate>Sat, 31 Dec 2016 06:04:40 +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>operations on data structure Archives -</title>
	<link>https://mitindia.in/tag/operations-on-data-structure/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Data structure Graph</title>
		<link>https://mitindia.in/data-structure-graph/</link>
		
		<dc:creator><![CDATA[SKB]]></dc:creator>
		<pubDate>Fri, 09 Dec 2016 10:54:54 +0000</pubDate>
				<category><![CDATA[C Programming]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[data structure graph]]></category>
		<category><![CDATA[graph]]></category>
		<category><![CDATA[operations on data structure]]></category>
		<guid isPermaLink="false">http://www.mitindia.in/?p=624</guid>

					<description><![CDATA[<p>Introduction to Graphs The limitation of tree is that it cannot represent many to many relation. This limitation is overcome by using Graph. Definition of a Graph &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- Graphs is a data structure consisting of a set of vertices (or nodes) A set of edges (or links) connecting the vertices G = (V, E) where V [&#8230;]</p>
<p>The post <a href="https://mitindia.in/data-structure-graph/">Data structure Graph</a> appeared first on <a href="https://mitindia.in"></a>.</p>
]]></description>
										<content:encoded><![CDATA[<h1><span style="color: #003300;">Introduction to Graphs</span></h1>
<hr />
<p><strong>The limitation of <a href="http://www.mitindia.in/2016/11/24/trees-data-structure/">tree</a> is that it cannot represent many to many relation.</strong><br />
<strong>This limitation is overcome by using Graph.</strong></p>
<p><strong> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- mylink -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-1696390399604457"
     data-ad-slot="7690934410"
     data-ad-format="link"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></strong></p>
<p><strong>Definition of a Graph</strong><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Graphs is a data structure consisting of a set of vertices (or nodes)<br />
A set of edges (or links) connecting the vertices<br />
G = (V, E) where<br />
V = set of vertices<br />
E = set of edges, each edge is formed from a<br />
pair of distinct vertices</p>
<p><strong>Graph Representation</strong><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
A set of items connected by edges. Each item is called a vertex or node. Formally, a graph is a set of vertices and a binary relation between vertices, adjacency.</p>
<p>The Graph is most widely represented in linked lists.</p>
<p>To represent a graph, a linked list is created for each vertex.</p>
<figure id="attachment_625" aria-describedby="caption-attachment-625" style="width: 300px" class="wp-caption alignright"><img fetchpriority="high" decoding="async" class="size-medium wp-image-625" src="http://www.mitindia.in/wp-content/uploads/2016/12/gr-300x200.png" alt="Data Structure Graph representation " width="300" height="200" srcset="https://mitindia.in/wp-content/uploads/2016/12/gr-300x200.png 300w, https://mitindia.in/wp-content/uploads/2016/12/gr-262x175.png 262w, https://mitindia.in/wp-content/uploads/2016/12/gr.png 427w" sizes="(max-width: 300px) 100vw, 300px" /><figcaption id="caption-attachment-625" class="wp-caption-text"><span style="color: #ff6600;">Data Structure Graph representation</span></figcaption></figure>
<p><strong>Graph Terminologies</strong><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Directed and Undirected Graph</p>
<p>If there is no order or direction by which the vertices are connected then the graph is called undirected graph.</p>
<p>If there is a specific order by which the vertices are connected, it is called directed graphs.</p>
<p>Adjacency: If two vertex such as vertex b is connected to vertex a by an edge. The vertices b and a are called adjacent to each other.</p>
<p>Incidence: The edge of two vertices is said to be incident.</p>
<p>Degree: The degree of a vertex in undirected graph is the number of edges incident on the vertex.</p>
<p>Path: A path in a graph is the sequence of vertices visited while traveling from one vertex to another where any two consecutive vertices in the sequence are adjacent.</p>
<p>Cycle: If a path originates and terminates at the same vertex, it is called a cycle.</p>
<p>Connected graph: A graph is said to be connected, if there exists a path between any two vertices in the graph.</p>
<p>Weighted Graphs: In a graph, if the edges connecting vertices are given weights (values) then it is a weighted graph.</p>
<p>Sub Graphs: A graph is a subgraph of another graph, when its vertices and edges are subsets of that graph.</p>
<p style="text-align: justify;"><strong>Graph Traversals</strong><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Depth First Search: It is an algorithm for traversing or searching a tree, tree structure, or graph. Intuitively, you start at the root (selecting some node as the root in the graph case) and explore as far as possible along each branch before backtracking.</p>
<p style="text-align: justify;">Formally, DFS is an uninformed search that progresses by expanding the first child node of the search tree that appears and thus going deeper and deeper until a goal state is found, or it hits a node that has no children. Then the search backtracks and starts off on the next node.</p>
<ul style="list-style-type: circle;">
<li><span style="color: #ff0000;"><strong>Conclusion</strong></span><strong>Graphs contain a finite set of vertices or elements</strong><strong>The vertices are connected by edges, the line joining the vertices</strong><strong>If there is a specific order by which the vertices are connected, it is called directed graphs</strong>
<p><strong>If the vertex b is connected to vertex a by an edge, then the vertices b and a are adjacent to each other</strong></p>
<p><strong>The edge (b, a) is said to be incident on vertices b and a.</strong></li>
</ul>
<p><a class="a2a_button_whatsapp" href="https://www.addtoany.com/add_to/whatsapp?linkurl=https%3A%2F%2Fmitindia.in%2Fdata-structure-graph%2F&amp;linkname=Data%20structure%20Graph" 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%2Fdata-structure-graph%2F&amp;linkname=Data%20structure%20Graph" 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%2Fdata-structure-graph%2F&#038;title=Data%20structure%20Graph" data-a2a-url="https://mitindia.in/data-structure-graph/" data-a2a-title="Data structure Graph"><img src="https://static.addtoany.com/buttons/favicon.png" alt="Share"></a></p><p>The post <a href="https://mitindia.in/data-structure-graph/">Data structure Graph</a> appeared first on <a href="https://mitindia.in"></a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Operations in Data Structure</title>
		<link>https://mitindia.in/operations-data-structure/</link>
					<comments>https://mitindia.in/operations-data-structure/#comments</comments>
		
		<dc:creator><![CDATA[SKB]]></dc:creator>
		<pubDate>Mon, 21 Nov 2016 11:09:05 +0000</pubDate>
				<category><![CDATA[C Programming]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[operations on data structure]]></category>
		<guid isPermaLink="false">http://www.mitindia.in/?p=605</guid>

					<description><![CDATA[<p>Operations : Data Structure 1. Operations on List Data Structure Insertion : It is the process of inserting new element or data to a list. Inserting an element in lists is easier, as the place of insertion is known prior. An element can be inserted anywhere in the list. 2. Deletion : An element can [&#8230;]</p>
<p>The post <a href="https://mitindia.in/operations-data-structure/">Operations in Data Structure</a> appeared first on <a href="https://mitindia.in"></a>.</p>
]]></description>
										<content:encoded><![CDATA[<h3 style="text-align: justify;">Operations : Data Structure</h3>
<hr />
<p style="text-align: justify;"><strong>1. Operations on List Data Structure</strong><br />
<strong>Insertion : It is the process of inserting new element or data to a list. Inserting an element in lists is easier, as the place of insertion is known prior. An element can be inserted anywhere in the list.<img decoding="async" class="alignright" src="http://i1.wp.com/image.slidesharecdn.com/lecture1-m-131122062232-phpapp02/95/lecture-1-data-structures-and-algorithms-1-638.jpg?resize=177%2C133" alt="Image result for data structures and algorithms" /></strong></p>
<p style="text-align: justify;"><strong>2. Deletion : An element can be removed from the list by deletion process. While deleting the element care should be taken to modify the deleted element’s link since it would not be valid after deletion. Insertion and Deletion operations can be performed on linked lists.</strong></p>
<p style="text-align: justify;"><strong>3. Push: The Push operation is used on Stack data structure. A data is said to be ‘pushed’ in to the stack when the data is placed on the top of the stack that is adding the data at the top. All new datas are pushed in to the stack.</strong></p>
<p style="text-align: justify;"><strong>4. Pop: The pop operation is exactly opposite to the push operation. When the data at the top of the stack is removed, it is said to be ‘popped’. The data at the top of the stack only can be popped.</strong></p>
<p style="text-align: justify;"><strong>Operations on Trees</strong></p>
<hr />
<p style="text-align: justify;"><strong>Tree Traversal : Traversing is a process of visiting every node in a tree at least once. The node is the part of the tree that contains the data. Before proceeding to the different traversals possible on trees.</strong><br />
<strong>A tree has two important parts are parent and child. The parent and child are all nodes. The top most node in the tree is the root.The root may grow in to many nodes called children.</strong></p>
<p style="text-align: justify;"><strong>There are three types of traversals in a tree. They are:</strong></p>
<p style="text-align: justify;"><strong>Inorder: The left node is visited first, then the root node is visited and finally the right node is visited.</strong><br />
<strong>Preoder: In preoder traversal, the nodes are visited in this fashion – root node, left node and right node.</strong><br />
<strong>Postorder: In postorder traversal, the nodes are visited in this fashion – left node, right node and root node.</strong></p>
<p style="text-align: justify;"><strong>Sorting and Searching</strong></p>
<hr />
<p style="text-align: justify;"><strong>A list or tree is sorted to arrange the elements in an order so that the operations like traversal are done easily. </strong><br />
<strong>Generally the elements are sorted alphabetically. </strong><br />
<strong>The most commonly used search algorithms are sequential search and binary search.</strong></p>
<p><a class="a2a_button_whatsapp" href="https://www.addtoany.com/add_to/whatsapp?linkurl=https%3A%2F%2Fmitindia.in%2Foperations-data-structure%2F&amp;linkname=Operations%20in%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%2Foperations-data-structure%2F&amp;linkname=Operations%20in%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%2Foperations-data-structure%2F&#038;title=Operations%20in%20Data%20Structure" data-a2a-url="https://mitindia.in/operations-data-structure/" data-a2a-title="Operations in Data Structure"><img src="https://static.addtoany.com/buttons/favicon.png" alt="Share"></a></p><p>The post <a href="https://mitindia.in/operations-data-structure/">Operations in Data Structure</a> appeared first on <a href="https://mitindia.in"></a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://mitindia.in/operations-data-structure/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
